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

bump lombok to avoid java16+ compile error #675

Merged
merged 2 commits into from Jul 8, 2022
Merged

bump lombok to avoid java16+ compile error #675

merged 2 commits into from Jul 8, 2022

Conversation

barryoneill
Copy link
Contributor

@barryoneill barryoneill commented Jul 7, 2022

On Java 16+, compilation fails with:

[error] Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private com.sun.tools.javac.processing.JavacProcessingEnvironment$DiscoveredProcessors com.sun.tools.javac.processing.JavacProcessingEnvironment.discoveredProcs accessible: module jdk.compiler does not "opens com.sun.tools.javac.processing" to unnamed module @7316cb78
[error] 	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
[error] 	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
[error] 	at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:180)
[error] 	at java.base/java.lang.reflect.Field.setAccessible(Field.java:174)
[error] 	at lombok.permit.Permit.setAccessible(Permit.java:50)
[error] 	at lombok.permit.Permit.getField(Permit.java:84)
[error] 	at lombok.javac.apt.LombokProcessor.getFieldAccessor(LombokProcessor.java:116)
[error] 	at lombok.javac.apt.LombokProcessor.<clinit>(LombokProcessor.java:110)

caused by projectlombok/lombok#2681

This PR upgrades lombok to a version containing the fix, and adds Java 18 to the build matrix.

@mbryzek mbryzek merged commit d860e24 into main Jul 8, 2022
@mbryzek mbryzek deleted the lombok-java-16 branch July 8, 2022 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants