| ←Older revision | Revision as of 05:18, 3 December 2026 | ||
| Line 3: | Line 3: | ||
The information inside of [[CtSym]] is used by [[JavaC]] compiler when it processes its '''--release XY''' parameter. It is a huge (10M+) artifact with intrinsic data encoded in hundreds of files under '''META-INF/ct.sym/*/*'''. Without it the [[JavaC]] wouldn't be able to compile code targeting older [[JDK]]s reliably. | The information inside of [[CtSym]] is used by [[JavaC]] compiler when it processes its '''--release XY''' parameter. It is a huge (10M+) artifact with intrinsic data encoded in hundreds of files under '''META-INF/ct.sym/*/*'''. Without it the [[JavaC]] wouldn't be able to compile code targeting older [[JDK]]s reliably. | ||
| - | Having this artifact available as a dedicated artifact on [[Maven]] Central repository is a huge step forward for all [[Java]] compiler related tools (like [[Sigtest]]). The [[CtSym]] is part of the [[JDK]] since JDK9, but who wants to download the latest JDK to get this [[API]] snapshots? As a result various tools (like [[Sigtest]]) included its own copy of [[CtSym]] in its JAR file - making all such tools quite bloated. Say no more! Now all these tools can share the [https://repo1.maven.org/maven2/com/dukescript/nbjavac/ctsym/ single CtSym artifact] produced by the Nb-[[Javac]] project. Moreover it is easy to ''upgrade to new version''. Rather than rebuilding the tools (to package new '''META-INF/ct.sym/*''' files) it is enough to just update a tool dependency to latest version of [[CtSym]]. | + | Having this artifact available as a dedicated artifact on [[Maven]] Central repository is a huge step forward for all [[Java]] compiler related tools (like [[Sigtest]]). The [[CtSym]] is part of the [[JDK]] since JDK9, but who wants to download the latest JDK to get this [[API]] snapshots? As a result various tools (like [[Sigtest]]) included its own copy of [[CtSym]] in its JAR file - making all such tools quite bloated. Say no more! Now all these tools can share the [https://repo1.maven.org/maven2/com/dukescript/nbjavac/ctsym/ single CtSym artifact] produced by the Nb-[[Javac]] project. Moreover it is easy to ''upgrade to new version''. Rather than rebuilding the tools (to package new '''META-INF/ct.sym/*''' files) it is enough to just update a tool dependency to latest version of [[CtSym]] [[Maven]] artifact. |
Using the released snapshots of the [[Java]] [[API]]s has never been easier! Enjoy the newly gain [[API]] [[Freedom]]! | Using the released snapshots of the [[Java]] [[API]]s has never been easier! Enjoy the newly gain [[API]] [[Freedom]]! | ||