CtSym
From APIDesign
| Line 1: | Line 1: | ||
The Nb-[[Javac]] project is publishing its own [https://repo1.maven.org/maven2/com/dukescript/nbjavac/ctsym/ ctsym] - a [[JAR]] file with historical snapshot of the Java APIs since JDK 8. Such info is used when [[JavaC]] processes its '''--release 21''' parameter. It is a huge (10M+) artifact with intrinsic data encoded in hundreds of files under '''META-INF/ct.sym/*/*'''. | The Nb-[[Javac]] project is publishing its own [https://repo1.maven.org/maven2/com/dukescript/nbjavac/ctsym/ ctsym] - a [[JAR]] file with historical snapshot of the Java APIs since JDK 8. Such info is used when [[JavaC]] processes its '''--release 21''' parameter. It is a huge (10M+) artifact with intrinsic data encoded in hundreds of files under '''META-INF/ct.sym/*/*'''. | ||
| - | 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. | + | 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]]. |
| - | + | Using the released snapshots of the [[Java]] [[API]]s has never been easier! Enjoy the newly gain [[API]] [[Freedom]]! | |
Revision as of 05:11, 3 December 2026
The Nb-Javac project is publishing its own ctsym - a JAR file with historical snapshot of the Java APIs since JDK 8. Such info is used when JavaC processes its --release 21 parameter. It is a huge (10M+) artifact with intrinsic data encoded in hundreds of files under META-INF/ct.sym/*/*.
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 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.
Using the released snapshots of the Java APIs has never been easier! Enjoy the newly gain API Freedom!