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 238736 - "Assertion error" (with .dump) and "java.lang.NoSuchFieldError: extending"
Summary: "Assertion error" (with .dump) and "java.lang.NoSuchFieldError: extending"
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.4
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-23 18:05 UTC by err
Modified: 2013-11-25 23:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
.dump file as requested by error message (3.52 KB, application/octet-stream)
2013-11-23 18:05 UTC, err
Details
messages.log with variety of related exceptions (119.06 KB, text/plain)
2013-11-23 18:07 UTC, err
Details

Note You need to log in before you can comment on or make changes to this bug.
Description err 2013-11-23 18:05:13 UTC
Created attachment 142513 [details]
.dump file as requested by error message

The project this occurred in is a test/play project.

Note: I have also attached messages.log since it shows some other exceptions that may be related.

A couple of years ago, I add the file AnnotationProc.java to try out some feature. Recently I noticed that I was getting some "java.lang.NoSuchFieldError: extending" exceptions with this project. I saw the lombok stuff in the exception stack trace and removed that jar from the project (not remembering was it was); this was a few weeks ago. However the exceptions continued.

I noticed this error again today, looked more closely at the project and found the file AnotationProc.java. I opened that file, and got the exception that requested this bug report.
Comment 1 err 2013-11-23 18:07:57 UTC
Created attachment 142514 [details]
messages.log with variety of related exceptions

(Since some of this happened a few weeks ago, my memory of that may not be perfect)
Comment 2 Svata Dedic 2013-11-25 13:54:20 UTC
The error is caused by Lombok annotation processor, or mismatch between Lombok processor and the used NetBeans javac version. Lombok uses javac internal classes directly, it has to be in sync with the implemenation used by the IDE.

Use Lombok project mailing lists for further information. Not a NetBeans defect.
Comment 3 err 2013-11-25 23:54:05 UTC
Found the problem. Even though I had removed the lombok library from the library node in the project tab. The "processor" tab still referenced the library from project properties' dialog's library node.