[YANGTOOLS-1534] Seal XmlCodec interface to deal with XmlCodecFactory warnings Created: 26/Aug/23  Updated: 29/Oct/23  Resolved: 29/Aug/23

Status: Resolved
Project: yangtools
Component/s: codecs
Affects Version/s: None
Fix Version/s: 11.0.1, 9.0.9, 10.0.10

Type: Improvement Priority: Medium
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to YANGTOOLS-1541 Expose YangInstanceIdentifier codec f... Resolved
Epic Link: Java 17

 Description   

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.


Generated at Wed Feb 07 20:56:26 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.