Bug 24440 - NPE when complete qualified allocation expression
Summary: NPE when complete qualified allocation expression
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M2   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-07 06:34 EDT by David Audel CLA
Modified: 2002-11-12 10:24 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Audel CLA 2002-10-07 06:34:06 EDT
1) create the following class
   public class X {
      void foo(){
         zzz.new ZZZ(<cursor>
      }
   }
2) do ctrl+space at cursor location
there is an NPE
Comment 1 David Audel CLA 2002-10-07 06:40:21 EDT
end of stacktrace:
java.lang.NullPointerException
	at 
org.eclipse.jdt.internal.compiler.problem.ProblemReporter.illegalPrimitiveOrArra
yTypeForEnclosingInstance(ProblemReporter.java:1153)
	at 
org.eclipse.jdt.internal.codeassist.complete.CompletionOnQualifiedAllocationExpr
ession.resolveType(CompletionOnQualifiedAllocationExpression.java:46)
	at org.eclipse.jdt.internal.compiler.ast.Expression.resolve
(Expression.java:424)
	at 
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatement
s(AbstractMethodDeclaration.java:358)
	at 
org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.resolveStatements
(MethodDeclaration.java:68)
	at 
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve
(AbstractMethodDeclaration.java:347)
	at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve
(TypeDeclaration.java:941)
	at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve
(TypeDeclaration.java:973)

Fixed.