-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 #122
Comments
The build passes on JDK9 without any special flags. Its merely a warning, not a hard failure. I don't run it on Travis because there seemed to be weirdness in the required configuration for experimentals, causing the JDK (8 or 9) to hang on an interrupt. But it runs fine locally or on Travis if I use a more reliable config that only works with JDK9. When JDK9 is released then I'll migrate to VarHandles and be released as v3.0. The alternative is to use the multi-jar feature and stay on 2.x. Either way my preference is to wait until JDK9 is released before migrating to VarHandles. I think its only grunt work and not complex. Only |
Since we're compatible I'm going to close this for now. But I'll try to have a purified release shortly after 9 ships. |
A few things I'm wondering now:
|
Runtime should work as well. My understanding is that they announced that internal APIs would be removed once the use-case was covered by a JEP and had been released for at least one major version. There was discussion of requiring a runtime flag, but that was rejected. There's probably a JavaOne session about the latest status on all of this. If the project with the dependency is unmaintained then I think there is cause for concern. But otherwise I think its okay to ignore and trust the authors will update once JDK9 is released. Since that was delayed again, it may be premature to worry about it. |
Yeah, my biggest worry with all of this is actually libraries like Documentum, where the authors clearly have no idea how to do Java in the first place, and probably can't be trusted to update in a reasonable time frame. |
I'd guess that JDK10 probably won't be delivered until 2019 or 2020. That leaves enough times for a stack refresh, so you'll probably have good alternatives by the time its a blocking issue. |
Caffeine shows up in a jdeps report of classes which will no longer work in Java 9:
The text was updated successfully, but these errors were encountered: