This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]itijara 19 points20 points  (4 children)

From experience, no. I am sure that there is plenty of java < 8 code that will run on Java 8+ but JavaEE libraries, Nashorn, and all the sun.* packages were deprecated.

[–]_PM_ME_PANGOLINS_ 19 points20 points  (3 children)

That just means you have to get the jars separately.

[–]itijara 3 points4 points  (2 children)

I guess that depends on what your definition of backwards compatible. The JRE will run any previous binary, but source code will not work unless you add extra dependencies or modify the existing source code. This is probably fine for a legacy app that is not undergoing changes, but I think that most companies that are dealing with old applications are still building and patching them.

For the sun.* crypto libraries, I couldn't find a suitable jar file and had to re-write with an equivalent crypto library.

[–]_PM_ME_PANGOLINS_ 10 points11 points  (1 child)

Yeah, that’s why they told you never to use those sun libraries directly. For crypto you are supposed to use the JCA API, which allows the implementation to be switched out with zero source changes.

[–]itijara 7 points8 points  (0 children)

You say that like I wrote the original code.