Skip to content
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

Illegal reflective access warning #8

Open
cyrille-artho opened this issue Mar 29, 2024 · 3 comments
Open

Illegal reflective access warning #8

cyrille-artho opened this issue Mar 29, 2024 · 3 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@cyrille-artho
Copy link
Member

Like with a similar issue in jpf-core, we have to take care of the illegal access warnings by setting the right permissions:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by nhandler.conversion.jpf2jvm.JPF2JVMjava_lang_reflect_ConstructorConverter (file:jpf-nhandler/build/classes/java/main/) to constructor java.lang.reflect.Constructor(java.lang.Class,java.lang.Class[],java.lang.Class[],int,int,java.lang.String,byte[],byte[])
WARNING: Please consider reporting this to the maintainers of nhandler.conversion.jpf2jvm.JPF2JVMjava_lang_reflect_ConstructorConverter
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
@cyrille-artho cyrille-artho added bug Something isn't working good first issue Good for newcomers labels Mar 29, 2024
@mdxabu
Copy link

mdxabu commented Oct 31, 2024

Can I work on this after you provide more explanation about it?

@cyrille-artho
Copy link
Member Author

Java's module system has changed, and a module needs to export its permissions correctly and be imported with the correct permission to avoid the warnings or errors shown above.

The idea here is to apply changes from PR 373 for jpf-core to build.gradle in jpf-nhandler as well:

javapathfinder/jpf-core#373

@mdxabu
Copy link

mdxabu commented Nov 2, 2024

@cyrille-artho, I will work on this. If I get stuck, can I ping you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants