3 ms·
> is that I can compile Java 4 code using JDK 17 https://stackoverflow.com/a/33240753 https://stackoverflow.com/a/33240753 ?
by dataflow 3y ago
> is that I can compile Java 4 code using JDK 17
https://stackoverflow.com/a/33240753 https://stackoverflow.com/a/33240753 ?
- foxyv 3y agoThe best part is you can still get around this. Although I've been lucky enough to not need to do this. I think my oldest project used Java 5 originally and doesn't use Sun classes. https://stackoverflow.com/questions/4065401/using-internal-sun-classes-with-javac https://stackoverflow.com/questions/4065401/using-internal-s...
- hyperman1 3y agoNotice how this uses a sun.* package, i.e. a hidden implementation detail of 1 specific JVM . Java was never guaranteed to have it in the first place. Some of these classes were so usefull that people used them even if they shouldn't. There are compatibility flags in the jvmbto allow access even in java 9, but each new version slowly causes additional pain. One risk of using libraries (or working with other people) is that you don't know if they limited them selves to good enough practices. Most do, a small percentage doesn't, but they cause pain for all of us.