Hacker News new | past | comments | ask | show | jobs | submit login

As of JDK 11, there is feature parity between OpenJDK and Oracle JDK, which is the JDK that most people used until now. In JDK 8, the Oracle version had several closed source additional features (such as Java Flight Recorder and the Z garbage collector). Also, implementations of things like graphics rendering used to be different in Oracle JDK 8 and earlier. That's no longer the case. Oracle JDK and OpenJDK should be drop-in replacements for each other as of JDK 11.



Amazon's OpenJDK is 1.8.0 which is JDK8, so it still 'misses' those Oracle's closed features?


Most of those features are only relevant for UI stuff and even then you are unlikely to notice the difference since openjdk would include implementations of anything even remotely relevant. Unless you know you need this, you can safely assume you don't.

Here's a good stackoverflow post on the topic (note this is about openjdk 7). Things have only improved since then.

https://stackoverflow.com/questions/11547458/what-is-the-dif...

If you are doing any kind of server side deployment, openjdk has been a drop in replacement since the java 7 days. Essentially all linux distributions include it and you have to jump through hoops to get the oracle version.

There are differences between different openjdk builds though. I've ran into issues with certificates a couple of times on Ubuntu. Also they had a strange notion of what is stable and what is not early in the life of java 8. Another issue is the licensing of the test suite. This makes it hard to test your builds. The words certified build, implies that the produced build passes the licensed test suite.


Correct. But the chances that you're using any of those features is extremely low.

Most of the differences are commercial features you're not allowed to use without a commercial support contract with Oracle. The only other differences are so small you probably wouldn't notice.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: