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 operation with 1.3.2 and openjdk11 #331

Closed
cova-fe opened this issue Aug 14, 2020 · 3 comments
Closed

illegal reflective access operation with 1.3.2 and openjdk11 #331

cova-fe opened this issue Aug 14, 2020 · 3 comments
Labels

Comments

@cova-fe
Copy link

cova-fe commented Aug 14, 2020

I'm testing rd cli with openjdk11 and I'm seeing this issue, starting from 1.3.2. 1.3.1 is fine.
1.3.2 is fine with openjdk8

It is only a warning, but maybe useful to know.

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by retrofit2.Platform (file:/rundeck/bin/rundeck-cli.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
WARNING: Please consider reporting this to the maintainers of retrofit2.Platform
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

@gschueler
Copy link
Member

@cova-fe thanks, that is fixable

@gschueler gschueler added the bug label Aug 14, 2020
@dginhoux
Copy link

Hi,

I've the same bug with openjdk 11.0.8.
I'm searching for a temporary workaround to hide the error message in shell script : just add a very poor 2>/dev/null like rd projects list --outformat "%name" 2>/dev/null

@gschueler
Copy link
Member

we can add a jar manifest entry which quells this I believe. reference: square/retrofit#3448

gschueler added a commit that referenced this issue Sep 29, 2020
Fix #331 java 11 illegal access warnings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants