This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 269480 - Netbeans hangs on Lombok Annotation Processing
Summary: Netbeans hangs on Lombok Annotation Processing
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-03 08:14 UTC by deveth0
Modified: 2017-03-09 12:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Dump (7.83 KB, application/octet-stream)
2017-01-03 08:14 UTC, deveth0
Details

Note You need to log in before you can comment on or make changes to this bug.
Description deveth0 2017-01-03 08:14:35 UTC
Created attachment 163326 [details]
Dump

Hi,

this seems to be a reproducible bug, at least I get it each time I tried:

If you mistype a Lombok Annotation (not sure with other annotations), you can get Netbeans to hang with full CPU usage on one core and multiple exceptions dumps in log file.


Works:
@Getter(onMethod = @__(@JsonValue))

Does not Work:
@Getter(onMethod = (@__@JsonValue))



Exception in Log-File:
java.lang.NullPointerException
  at lombok.javac.JavacAST.printMessage(JavacAST.java:420)
  at lombok.javac.JavacNode.addError(JavacNode.java:235)
  at lombok.javac.handlers.JavacHandlerUtil$1.setError(JavacHandlerUtil.java:286)
  at lombok.javac.HandlerLibrary.handleAnnotation(HandlerLibrary.java:244)
  at lombok.javac.JavacTransformer$AnnotationVisitor.visitAnnotationOnField(JavacTransformer.java:91)
  at lombok.javac.JavacNode.traverse(JavacNode.java:115)
  at lombok.javac.JavacAST.traverseChildren(JavacAST.java:143)
  at lombok.javac.JavacNode.traverse(JavacNode.java:80)
  at lombok.javac.JavacAST.traverseChildren(JavacAST.java:143)
  at lombok.javac.JavacNode.traverse(JavacNode.java:75)
  at lombok.javac.JavacAST.traverseChildren(JavacAST.java:143)
  at lombok.javac.JavacNode.traverse(JavacNode.java:70)
  at lombok.javac.JavacAST.traverse(JavacAST.java:139)
  at lombok.javac.JavacTransformer.transform(JavacTransformer.java:70)
  at lombok.javac.apt.LombokProcessor.process(LombokProcessor.java:250)
  at lombok.core.AnnotationProcessor$JavacDescriptor.process(AnnotationProcessor.java:114)
  at lombok.core.AnnotationProcessor.process(AnnotationProcessor.java:164)
  at lombok.launch.AnnotationProcessorHider$AnnotationProcessor.process(AnnotationProcessor.java:59)
Comment 1 Svata Dedic 2017-03-09 12:08:27 UTC
Will not handle for 8.2 release, niche userbase. 

I've tested with current dev build and it seems that Lombok has serious problems with bundled nbjavac / JDK9 implementation. NPEs, linkage errors etc.