Bug 118661 - Nullpointer exception during compilation
Summary: Nullpointer exception during compilation
Status: RESOLVED WORKSFORME
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.5.0M5   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-30 11:31 EST by Michael Moser CLA
Modified: 2006-05-10 10:44 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Moser CLA 2005-11-30 11:31:00 EST
Version: 1.3.0
Build id: 20051117105200
AspectJ version: 1.5.0 M5

java.lang.NullPointerException
at org.aspectj.org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.typeToRecord(CompilationUnitScope.java:710)
at org.aspectj.org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.recordTypeReference(CompilationUnitScope.java:632)
at org.aspectj.ajdt.internal.compiler.lookup.InterTypeMethodBinding.canBeSeenBy(InterTypeMethodBinding.java:83)
at org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Scope.findExactMethod(Scope.java:733)
at org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Scope.getMethod(Scope.java:2160)
at org.aspectj.org.eclipse.jdt.internal.compiler.ast.MessageSend.resolveMethodBinding(MessageSend.java:480)
at org.aspectj.org.eclipse.jdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:347)
at org.aspectj.org.eclipse.jdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:199)
at org.aspectj.org.eclipse.jdt.internal.compiler.ast.Block.resolve(Block.java:101)
at org.aspectj.org.eclipse.jdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:225)
at org.aspectj.org.eclipse.jdt.internal.compiler.ast.Statement.resolveCase(Statement.java:140)
at org.aspectj.org.eclipse.jdt.internal.compiler.ast.SwitchStatement.resolve(SwitchStatement.java:279)
at org.aspectj.org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:422)
at org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:178)
at org.aspectj.org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:400)
at org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1088)
at org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1130)
at org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1021)
at org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1137)
at org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclaration.java:305)
at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:514)
at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:329)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation(AjBuildManager.java:809)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuild(AjBuildManager.java:254)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.incrementalBuild(AjBuildManager.java:163)
at org.aspectj.ajde.internal.CompilerAdapter.compile(CompilerAdapter.java:117)
at org.aspectj.ajde.internal.AspectJBuildManager$CompilerThread.run(AspectJBuildManager.java:191)

NullPointerException thrown: null
Comment 1 Andrew Clement CLA 2005-12-01 03:57:40 EST
Michael - can I ask what you were doing when this happened - was it on an incremental compilation or a full build?
Comment 2 Michael Moser CLA 2005-12-01 09:53:24 EST
I have to admit I am not 100% sure any more. I *think* it was a full build (even a build clean, if I recall correctly).

Michael
Comment 3 Andrew Clement CLA 2005-12-01 10:36:37 EST
Is there any way you could share with me your project that fails in this way? (if its reproducable...)  So I can debug it further.  (If you can, send it to my IBM email: clemas@uk.ibm.com)
thanks.

Comment 4 Michael Moser CLA 2005-12-01 18:01:04 EST
Hi Andy,

the bug had appeared a couple of time yesterday. Strange enough today I was hacking along for several hours and it did not show up any more (but I found a couple of others - as you may have noticed :-) ).

So - since it's currently not reproducible - I doubt it makes much sense to send you a copy of our project. But if I see this NPE again then I will wrap that state up and send you a copy.

Michael

Comment 5 Wes Isberg CLA 2006-05-10 10:44:08 EDT
Presumed fixed or UTR since Michael did not send in the project.  
stalebug