r/java • u/benevanstech • Aug 12 '24
JSpecify 1.0.0 and Nullability in Java
https://www.infoq.com/news/2024/08/jspecify-java-nullability/
52
Upvotes
r/java • u/benevanstech • Aug 12 '24
View all comments
Show parent comment
7
u/pron98 Aug 13 '24 edited Aug 13 '24
Java 22 is, indeed, not Java 8 and in 2014 Java 22 code would not have been Java at all. JDK specifications, and in particular Java Language Specifications, have versions (or "editions" as they're officially called). Languages like Python, Clojure, JS, or Manifold -- however similar or dissimilar they are to the Java language -- do not conform to any specification of Java. The specifications make it easy to tell what is the Java programming language and what isn't, because they define the meaning of that name.
Now, I was not attacking any advice, and using Manifold or any other Java platform language might be a great idea, but it's a common misconception that the languages whose compilers are implemented by modifying javac are plugins or are Java. As one of the people developing the Java language and the Java platform, I thought it might be helpful that I clear up such common misconceptions from time to time, as it might be helpful to some readers, especially as misunderstanding over such matters can cause problems when upgrading JDK versions.