-
Notifications
You must be signed in to change notification settings - Fork 32
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
Remove unsupported java versions #160
Conversation
This is now ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very thorough.
Let's not merge just yet. I want to give Alex a chance to look at it. |
Thank you both for the review. I would like to include an additional runtime check on the runtime version in this PR, is it acceptable to throw an exception if the user is on an unsupported version? Strictly speaking, errors would only affect users allocating direct memory on Java 9 or 10, but I think it's safest just to disable them completely. |
I talked to Alex and Will about your question. If the user, running 9 or 10 and not attempting to allocate off-heap memory, can do pretty much anything else, our recommendation is to just leave it be and not prematurely throw if you detect 9 or 10. As long as it is documented that we don't support 9 or 10 it should be OK. It would be nice it we could throw an intelligent error message if the user attempts to allocate off-heap memory. |
This reverts commit 52263c8.
Thank you for this feedback - I think this makes sense. Design-wise, we could probably initialise the user runtime's capabilities as an enum and check these capabilities whenever the Memory API is invoked. Perhaps we can revisit this post-release. In the meantime, I have reverted the premature exception since these versions might be implicitly supported if the user only allocates memory on heap. Once merged, I'll prepare these changes for release. |
This removes support for Java9 and Java10. These versions are not LTS versions and in the case of Java9, no longer receive security patches.