Bug 481898

Summary: NPE in SyntheticMethodBinding.initializeMethodAccessor
Product: [Tools] AspectJ Reporter: Chelsey Jurado <cnjurado>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: major    
Priority: P3 CC: aclement
Version: 1.8.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows 8   
Whiteboard:

Description Chelsey Jurado CLA 2015-11-11 00:29:53 EST
java.lang.NullPointerException
at org.aspectj.org.eclipse.jdt.internal.compiler.lookup.SyntheticMethodBinding.initializeMethodAccessor(SyntheticMethodBinding.java:535)
at org.aspectj.org.eclipse.jdt.internal.compiler.lookup.SyntheticMethodBinding.<init>(SyntheticMethodBinding.java:233)
at org.aspectj.org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.addSyntheticMethod(SourceTypeBinding.java:680)
at org.aspectj.org.eclipse.jdt.in ... lugin$8.run(DebugUIPlugin.java:1256)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Compile error: NullPointerException thrown: null
Comment 1 Andrew Clement CLA 2016-01-06 18:10:10 EST
I'm not sure this was created on 1.8.7 (as the report indicates) because the line number 535 in SyntheticMethodBinding is just a close bracket '}'. Going back to old versions it becomes a real line that could NPE at 1.8.5, which was on an older level of the JDT compiler.  That line is 544 in SyntheticMethodBinding in 1.8.7. I'd recommend trying the compile on a more recent compiler level. If it still fails, if you can attach a snippet of code that leads to the problem that would help, or describe the kinds of aspect in use.
Comment 2 Andrew Clement CLA 2016-03-08 11:35:02 EST
If still an issue please feel free to re-open with a stack trace on a more recent AspectJ.