Bug 481898 - NPE in SyntheticMethodBinding.initializeMethodAccessor
Summary: NPE in SyntheticMethodBinding.initializeMethodAccessor
Status: RESOLVED INVALID
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.8.7   Edit
Hardware: PC Windows 8
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-11 00:29 EST by Chelsey Jurado CLA
Modified: 2016-03-08 11:35 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.