-
-
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
NullPointerException during compilation because of val #616
Comments
👤 gregoire.neuville 🕗 Sep 24, 2013 at 17:00 UTC What steps will reproduce the problem?
What is the expected output? What do you see instead? Expected is a successful compilation. Observed is crash with a NullPointerException What version of the product are you using? On what operating system? Lombok 0.12.0 on openjdk 1.7.0_21 (64 bit) on linux 3.10-12 amd64. Please provide any additional information below. IMPORTANT : remove the Getter annotation and it compiles fine. (but substitute it with any other one - SuppressWarning for example - and the crash is back) Stacktrace : Exception while resolving: NODE LOCAL (class com.sun.tools.javac.tree.JCTree$JCVariableDecl) @ val() |
👤 askoning 🕗 Oct 07, 2013 at 18:15 UTC Reproduced in 0.11.8, 0.12 HEAD using OpenJDK 1.7.0-15. This is almost the exact same stacktrace as issue #578 and issue #434, but there Roel says "ANY use of 'val' ANYWHERE in ANY local class, if the local class has generics, will fail with an NPE." Which this doesn't have. So it's not only generics that make the bomb explode. |
👤 reinierz 🕗 Feb 08, 2015 at 21:07 UTC This should be fixed in edge, and this fix will be rolled out 1.16.2 which will be out in a day or two. |
End of migration |
This is still occurring in 1.16.6
|
Example:
|
Migrated from Google Code (issue 581)
The text was updated successfully, but these errors were encountered: