CtSym
From APIDesign
| (One intermediate revision not shown.) | |||
| Line 1: | Line 1: | ||
[[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. | [[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]] | + | 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]]! | ||
Current revision
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 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 JDKs 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 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 APIs has never been easier! Enjoy the newly gain API Freedom!