-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
@SneakyThrows on Java 9 fails to remove reference to lombok/Lombok.sneakyThrow from bytecode #1518
Comments
Thanks, I'll look into this. |
I can reproduce the problem |
In jdk9, |
I wanted to suggest a workaround: using |
|
Thanks for the updates, the hard work, and the workarounds. I've got javassist on my classpath, so I hand-crafted my own bytecode to do something similar to sneakyThrow in the meantime. We're looking forward to the next release, it's my last blocker for JDK9. |
Tested the fix in jdk8 and jdk9. Both work. |
@SneakyThrows
appears to be broken using (as of today) the most recentlombok-edge.jar
(1.16.19, 2017-11-06 22:07:40 UTC) with Java 9.0.0 GA. The symptoms are similar to closed issue #708 (for Java 8), and I'm referencing issue #985 for tracking purposes.Example code:
Java 8u152 generates:
Java 9 generates:
All my other uses of Lombok in this project work correctly AFAICT; my getters/setters, constructors, etc. are all there. Unit tests caught it, and now they don't pass unless Lombok is in the runtime classpath.
The text was updated successfully, but these errors were encountered: