Lombok: JDK10 Illegal reflective access

Created on 6 Apr 2018  路  9Comments  路  Source: projectlombok/lombok

I'm not quite sure what I'm looking at.
Please request any information that you might need.

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by lombok.javac.apt.LombokProcessor to field com.sun.tools.javac.processing.JavacProcessingEnvironment.discoveredProcs
WARNING: Please consider reporting this to the maintainers of lombok.javac.apt.LombokProcessor
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

Came up when trying to compile my code with maven 3.5.3.
I'm not using any experimental features AFAIK 馃槃

Most helpful comment

Is there a schedule for the next release on maven central that works with JDK 10?

All 9 comments

Duplicate of #1591?

I think not, I am using JDK10, not 9.
Also, this is not only a warning, it breaks my build. I am not able to compile the code.

i have this issue

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by lombok.javac.apt.LombokProcessor to field com.sun.tools.javac.processing.JavacProcessingEnvironment.discoveredProcs
WARNING: Please consider reporting this to the maintainers of lombok.javac.apt.LombokProcessor
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

Related issues

1621

1572

1591

Fixed in the edge release.

Is there a schedule for the next release on maven central that works with JDK 10?

Probably this week.

Any update on the release plans?

Yes, probably within a few hours.

We did release 1.16.22, but I recommend waiting for 1.18.0, which will be released very soon.

Was this page helpful?
0 / 5 - 0 ratings