Community
Participate
Working Groups
I am running 200408122000. I refactored two anonymous inner classes to regular inner classes using the refactoring, and did a little light editing afterwards. When I went to save, I got dialog reporting I couldn't save because of a Null Pointer Exception. Here's what's in the log: Exception occurred during problem detection: java.lang.NullPointerException at org.eclipse.jdt.internal.compiler.lookup.Scope.findMemberType (Scope.java:669) at org.eclipse.jdt.internal.compiler.lookup.Scope.getMemberType (Scope.java:1697) at org.eclipse.jdt.internal.compiler.lookup.Scope.getType(Scope.java:1809) at org.eclipse.jdt.internal.compiler.ast.QualifiedTypeReference.getTypeBinding (QualifiedTypeReference.java:41) at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType (TypeReference.java:147) at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveSuperType (TypeReference.java:100) at org.eclipse.jdt.internal.compiler.lookup.ClassScope.findSupertype (ClassScope.java:924) at org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectSuperclass (ClassScope.java:636) at org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectTypeHierarchy (ClassScope.java:739) at org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectMemberTypes (ClassScope.java:609) at org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectTypeHierarchy (ClassScope.java:745) at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.connectTypeHierar chy(CompilationUnitScope.java:239) at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings (LookupEnvironment.java:183) at org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler.java:552) at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process (CompilationUnitProblemFinder.java:175) at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure (CompilationUnit.java:148) at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:183) at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed (JavaElement.java:543) at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent (CompilationUnit.java:974) at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation (ReconcileWorkingCopyOperation.java:58) at org.eclipse.jdt.internal.core.JavaModelOperation.run (JavaModelOperation.java:700) at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation (JavaModelOperation.java:739) at org.eclipse.jdt.internal.core.CompilationUnit.reconcile (CompilationUnit.java:1100) at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile (JavaReconcilingStrategy.java:88) at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile (JavaReconcilingStrategy.java:129) at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile (CompositeReconcilingStrategy.java:86) at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile (JavaCompositeReconcilingStrategy.java:96) at org.eclipse.jface.text.reconciler.MonoReconciler.process (MonoReconciler.java:75) at org.eclipse.jdt.internal.ui.text.JavaReconciler.process (JavaReconciler.java:315) at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run (AbstractReconciler.java:204)
Oh, it's worse than that. Now I'm completely hosed! I copied the content of the file, exited, and restarted Eclipse. Got the same errors on restart. Then when I try to do Control-Alt-T and type the name of the outer class, I get the same error. Seems to be a persistent corruption of the index.
Could you please attach your test case?
This has nothing to do with index files. There seems to be a bug in the compiler reconciler.
*** This bug has been marked as a duplicate of 72094 ***