Bug 368018 - java.lang.NullPointerException at MethodVerifier.checkForRedundantSuperinterfaces
Summary: java.lang.NullPointerException at MethodVerifier.checkForRedundantSuperinterf...
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.7.0   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 1.7.0   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 372962 373733 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-06 06:35 EST by Vincent Heet CLA
Modified: 2012-03-31 10:56 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Heet CLA 2012-01-06 06:35:06 EST
Hello all,

I am getting the following stack trace with AspectJ 1.7.0.20111215190600

java.lang.NullPointerException
at org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodVerifier.checkForRedundantSuperinterfaces(MethodVerifier.java:307)
at org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodVerifier.computeInheritedMethods(MethodVerifier.java:567)
at org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodVerifier.verify(MethodVerifier.java:977)
at org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Method ... AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Compile error: NullPointerException thrown: null


Issue exists on Mac OS X and Linux systems as far as I know.
Comment 1 Andrew Clement CLA 2012-01-10 11:52:16 EST
I think this will be related to introduction of a new interface, I fixed something like this before putting 1.7.0.M1 out. 

Do you perhaps have a sample of code that shows the problem?
Comment 2 Andrew Clement CLA 2012-03-01 11:20:59 EST
*** Bug 372962 has been marked as a duplicate of this bug. ***
Comment 3 Thomas Pasch CLA 2012-03-08 03:37:17 EST
Dear Andrew,

this is not actually a sample. But I work for a open source company and because of this you could get our sources with git. It is a maven based project that is normally developed with eclipse. In fact it is a simple a matter of import it into eclipse to see the problem.

The source is mirrored at http://repo.or.cz/w/nuclos.git . Git URLs are 	git://repo.or.cz/nuclos.git or http://repo.or.cz/r/nuclos.git .
Comment 4 Andrew Clement CLA 2012-03-09 16:04:14 EST
Thanks Thomas, that was great, it enabled me to recreate and fix it.  I just committed the change, hopefully it'll be in an AJDT later today.
Comment 5 Andrew Clement CLA 2012-03-09 16:06:56 EST
*** Bug 373733 has been marked as a duplicate of this bug. ***
Comment 6 Thomas Pasch CLA 2012-03-29 14:29:14 EDT
Dear Andrew,

well, I see the bug is FIXED - but it still bites me. Is in STS 2.9.1. And when I use the 'dev' update site of aspectj, it is still there as well...

How can I get a recent version of the aspectj stuff with the fix included???

Cheers,

Thomas
Comment 7 Andrew Clement CLA 2012-03-29 17:12:01 EDT
Hi Thomas,

> And when I use the 'dev' update site of aspectj, it is still there as well...

Do you mean the dev build of AJDT? The one from here:

http://download.eclipse.org/tools/ajdt/37/dev/update

That should be an AJDT 2.2.0 version dated 20120314.

Is that what you have, as the fix should be in there?

If it doesn't address it please can you give me a new stack trace and let's reopen this.
Comment 8 Thomas Pasch CLA 2012-03-31 10:56:52 EDT
Dear Andrew,

sorry for the noise. I tried a fresh eclipse-indigo install with the dev update site. The problem doesn't show up. 

However, trying to update an STS-2.9.x installation does not work. Because of this, I opened a bug at https://issuetracker.springsource.com/browse/STS-2549 .