r/java • • Mar 19 '19

Java 12 Released !!!

https://www.oracle.com/technetwork/java/javase/downloads/jdk12-downloads-5295953.html
235 Upvotes

98 comments sorted by

View all comments

78

u/MasterLJ Mar 19 '19

...and here I am still Java 8ing =|

29

u/Life_is_a_meme Mar 19 '19

I don't even know how to migrate to Java 9 and they're already on Java 12...

5

u/KamiKagutsuchi Mar 19 '19 edited Mar 19 '19

For java 9 most likely all you have to do is add --add-module java.xml.bind when running the program if you use xml (or most json) parsing libraries. Otherwise you dont have to do anything.

For java 10+ you have to get replacement libraries for the crap (including xml binding) that has been removed from the jdk. Most likely you don't need any of these libraries, except maybe xml binding.

1

u/dpash Mar 19 '19

You can also add the maven/gradle dependency for java.xml.bind API. In some cases you might also need an implementation of the API, but that's just a dependency away too.