[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: |
|
||||||||
| 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. |