CtSym
From APIDesign
| Line 1: | Line 1: | ||
| - | [[CtSym]] is a [[JAR]] file with historical | + | [[CtSym]] is a [[JAR]] file with historical snapshots of the [[Java]] [[API]]s since JDK8 up until the more recent [[JDK]]. The Nb-[[Javac]] project is publishing its own [https://repo1.maven.org/maven2/com/dukescript/nbjavac/ctsym/ ctsym] as a separate and dedicated [[Maven]] Central repository artifact. |
The information inside of [[CtSym]] info is used when [[JavaC]] processes its '''--release XY''' parameter. It is a huge (10M+) artifact with intrinsic data encoded in hundreds of files under '''META-INF/ct.sym/*/*'''. | The information inside of [[CtSym]] info is used when [[JavaC]] processes its '''--release XY''' parameter. It is a huge (10M+) artifact with intrinsic data encoded in hundreds of files under '''META-INF/ct.sym/*/*'''. | ||
Revision as of 05:16, 3 December 2026
CtSym is a JAR file with historical snapshots of the Java APIs since JDK8 up until the more recent JDK. The Nb-Javac project is publishing its own ctsym as a separate and dedicated Maven Central repository artifact.
The information inside of CtSym info is used when JavaC processes its --release XY 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!