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

Fix illegal reflective access operations (Java 9) #110

Open
jeremydlawrence opened this Issue Oct 13, 2017 · 4 comments

Comments

Projects
None yet
6 participants
@jeremydlawrence

jeremydlawrence commented Oct 13, 2017

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by jnr.posix.JavaLibCHelper to method sun.nio.ch.SelChImpl.getFD()
WARNING: Please consider reporting this to the maintainers of jnr.posix.JavaLibCHelper
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

@jeremydlawrence jeremydlawrence changed the title from Fix illegal reflective access operations to Fix illegal reflective access operations (Java 9) Oct 13, 2017

@huntc

This comment has been minimized.

huntc commented Nov 25, 2017

Just wondering how this is going to be fixable without either lobbying for the JDK to provide a supported SelChImpl or moving away from sun.nio.ch entirely... any thoughts out there?

@Zhuinden

This comment has been minimized.

Zhuinden commented Mar 21, 2018

Hey, this project is an example for Java 8->9 migration and that this code here will break after Java 9 by default: https://docs.oracle.com/javase/9/migrate/toc.htm#JSMIG-GUID-7BB28E4D-99B3-4078-BDC4-FC24180CE82B

@headius headius added this to the 3.0.46 milestone May 16, 2018

@PaulSandoz

This comment has been minimized.

PaulSandoz commented Jun 21, 2018

Could you bring this use-case to OpenJDK either by mailing nio-dev@openjdk.java.net and/or logging an issue here https://bugreport.java.com/bugreport/ (which will eventually end up at https://bugs.openjdk.java.net/secure/Dashboard.jspa).

Note that JNR will continue to still work on Java 11. Illegal access operations will be denied in a future release to be determined.

@ohumbel

This comment has been minimized.

ohumbel commented Jul 29, 2018

@PaulSandoz Are you aware of a discussion on nio-dev or of a bug report we could follow?
I searched the nio-dev archives from June on, and I believe I haven't found a matching topic (but I might be wrong).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment