CtSym

From APIDesign

(Difference between revisions)
Jump to: navigation, search
(New page: 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. ...)
Line 3: Line 3:
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].
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].
-
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]].
+
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]].

Revision as of 05:08, 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.

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.

Personal tools
buy