Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-1534

Seal XmlCodec interface to deal with XmlCodecFactory warnings

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Medium Medium
    • 11.0.1, 9.0.9, 10.0.10
    • None
    • codecs
    • None

      XmlCodec is leaked from XmlCodecFactory, which is a public class. Prior to Java 15 we have had no way of restricting valid implementations, hence we kept the interface as package-internal. This leads to JPMS warnings about XmlCodec not being visible to clients.

      With Java 17 we can happily expose the interface and still ensure there are no surprises.

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: