Join GitHub today
NullPointerException during compilation because of val #616
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)
Exception while resolving: NODE LOCAL (class com.sun.tools.javac.tree.JCTree$JCVariableDecl) @ val()
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.
This is still occurring in 1.16.6