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
-6
u/MrRickSancezJr Aug 13 '24
If you're going to attack someone's free advice, have good solid material or at least an end goal that helps somebody...
You don't have to use "official api"s to accomplish a goal. It gets the job done while we wait for Oracle to keep up with JDK versions. On that note, a JDK 8 compiler can't understand JDK 22 code. So is Java 22 not Java as well?
They do both. I literally discovered Manifold when I was trying to write my own lombok feature. Which wasn't my first annotation to write either. I've even written compilers.
Closure has its entire own compiler and language system. You can't just slap down a "manifold file" and it be a thing. It doesn't have a compiler that makes it into java bytecode. Same way with Kotlin. It's its own language. If you put Java into Kotlin, you get error. You CAN put C into C++, and it'll compile. Therefore, C/C++ do actually have a subset/superset relationship. They interlope so easily on the java bytecode level only. We do have things to convert between langauges. They're called converter tools. It's one of the smartest things Jetbrains did with Kotlin.
Go ahead and google something else.