-
Notifications
You must be signed in to change notification settings - Fork 872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java 9 compatibility #6726
Comments
hi @trejkaz, We are actually active testing on jdk9, all the reference to In any case we have a plan to get rid of most of the 'sun.misc' references as soon as a valid alternative come out. One point the testing of jdk9 is happen on develop brach, that will be 3.0, and the release 3.0 will be probaly the firt to guarantee the support of jdk9. Regards |
Hi @tglman
is there any update ? |
Hi @tglman Is it help to you? <profile>
<id>jigsaw</id>
<activation>
<!-- Java 9 doesn't identify itself as "1.9" but "9" -->
<jdk>9</jdk>
</activation>
<properties>
<additionalRuntimeArgLine>--add-modules java.xml.bind</additionalRuntimeArgLine>
</properties>
</profile> |
hi @schernolyas, This can be add but is an option only for jdk9 so it need some condition on the script boot based on the jdk version, as well all the third party that have orient as maven dependency should be aware of that, we are opting instead to remove the dependency of the jdk xml bind library and use a maven dependency, this is done in 3.x branch (not in 3.0.0-m2 will be next version). @saeedtabrizi you can monitor the progress here: https://helios.orientdb.com/job/develop/job/orientdb-develop-openjdk-9/ we are not yet done but close to. Regards |
Hi, 3.0.0-m2 already support jdk9. Regards |
Hi, Already fixed with 3.0.0 and our continuous integration check java8 and java9 builds. Closing. |
I ran jdeps on the 3.0 release and am still seeing internal API usage. I assume all these are considered "OK until they remove it in a later version", or something to the effect? The "suggested replacement" goes to a JEP which doesn't actually describe a replacement, which is all a bit confusing to me.
|
Hi , These APIs are not replaced yet in JDK itself. Probably in JDK 11 and
ODB we will use completely public API .
On Wed, Apr 18, 2018, 06:02 Trejkaz (pen name) ***@***.***> wrote:
I ran jdeps on the 3.0 release and am still seeing internal API usage.
I assume all these are considered "OK until they remove it in a later
version", or something to the effect? The "suggested replacement" goes to a
JEP which doesn't actually describe a *replacement*, which is all a bit
confusing to me.
orientdb-core-3.0.0.jar -> jdk.unsupported
com.orientechnologies.common.comparator.OUnsafeByteArrayComparator -> sun.misc.Unsafe JDK internal API (jdk.unsupported)
com.orientechnologies.common.comparator.OUnsafeByteArrayComparator$1 -> sun.misc.Unsafe JDK internal API (jdk.unsupported)
com.orientechnologies.common.console.TTYConsoleReader -> sun.misc.Signal JDK internal API (jdk.unsupported)
com.orientechnologies.common.console.TTYConsoleReader -> sun.misc.SignalHandler JDK internal API (jdk.unsupported)
com.orientechnologies.common.console.TTYConsoleReader$1 -> sun.misc.Signal JDK internal API (jdk.unsupported)
com.orientechnologies.common.console.TTYConsoleReader$1 -> sun.misc.SignalHandler JDK internal API (jdk.unsupported)
com.orientechnologies.common.serialization.OUnsafeBinaryConverter -> sun.misc.Unsafe JDK internal API (jdk.unsupported)
com.orientechnologies.common.serialization.OUnsafeBinaryConverter$1 -> sun.misc.Unsafe JDK internal API (jdk.unsupported)
com.orientechnologies.orient.core.OSignalHandler -> sun.misc.Signal JDK internal API (jdk.unsupported)
com.orientechnologies.orient.core.OSignalHandler -> sun.misc.SignalHandler JDK internal API (jdk.unsupported)
com.orientechnologies.orient.core.OSignalHandler$OSignalListener -> sun.misc.Signal JDK internal API (jdk.unsupported)
Warning: JDK internal APIs are unsupported and private to JDK implementation that are
subject to be removed or changed incompatibly and could break your application.
Please modify your code to eliminate dependence on any JDK internal APIs.
For the most recent update on JDK internal API replacements, please check:https://wiki.openjdk.java.net/display/JDK8/Java+Dependency+Analysis+Tool
JDK Internal API Suggested Replacement
---------------- ---------------------
sun.misc.Signal See http://openjdk.java.net/jeps/260
sun.misc.SignalHandler See http://openjdk.java.net/jeps/260
sun.misc.Unsafe See http://openjdk.java.net/jeps/260
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#6726 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGaatmPPweb2kdevI5k_PAKJoOBEkFeks5tpqzOgaJpZM4KCQ8J>
.
--
Best regards,
Andrey Lomakin, R&D lead.
OrientDB Ltd
twitter: @Andrey_Lomakin
linkedin: https://ua.linkedin.com/in/andreylomakin
blogger: http://andreylomakin.blogspot.com/
|
A jdeps report lists a number of private API usages in orientdb, which will stop working in Java 9:
The text was updated successfully, but these errors were encountered: