Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » Compile Error with "... implements ...<E>"
Compile Error with "... implements ...<E>" [message #587522] Mon, 21 March 2005 13:05
Eclipse User
Originally posted by: rstoner.allstontrading.com

I'm running Eclipse 3.1M5a on a WinXP machine, using ADJT
1.2.0.20050308091611.

When trying to compile the class:
import java.util.Iterator;
public class Tiger implements Iterable<Object> {
public Iterator<Object> iterator() {
return null;
}
}

or
public class Tiger<E extends Object> implements Iterable<Object> {
public Iterator<Object> iterator() {
return null;
}
}

I get the following error:
Internal compiler error
java.lang.NullPointerException

at
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ClassSc ope.detectHierarchyCycle(ClassScope.java:945)

at
org.aspectj.org.eclipse.jdt.internal.compiler.ast.Parameteri zedSingleTypeReference.internalResolveType(ParameterizedSing leTypeReference.java:143)

at
org.aspectj.org.eclipse.jdt.internal.compiler.ast.Parameteri zedSingleTypeReference.resolveType(ParameterizedSingleTypeRe ference.java:208)

at
org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeRefere nce.resolveSuperType(TypeReference.java:112)

at
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ClassSc ope.findSupertype(ClassScope.java:1092)

at
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ClassSc ope.connectSuperInterfaces(ClassScope.java:827)

at
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ClassSc ope.connectTypeHierarchy(ClassScope.java:885)

at
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Compila tionUnitScope.connectTypeHierarchy(CompilationUnitScope.java :249)

at
org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironmen t.completeTypeBindings(AjLookupEnvironment.java:91)

at
org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.begin ToCompile(Compiler.java:331)

at
org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.compi le(Compiler.java:348)

at
org.aspectj.ajdt.internal.core.builder.AjBuildManager.perfor mCompilation(AjBuildManager.java:682)

at
org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuil d(AjBuildManager.java:168)

at
org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuil d(AjBuildManager.java:128)

at
org.aspectj.ajdt.internal.core.builder.AjBuildManager.increm entalBuild(AjBuildManager.java:109)

at
org.aspectj.ajde.internal.CompilerAdapter.compile(CompilerAd apter.java:117)

at
org.aspectj.ajde.internal.AspectJBuildManager$CompilerThread .run(AspectJBuildManager.java:165)



Changing the class to:
public class Tiger<E> implements Iterable<E> {
public Iterator<E> iterator() {
return null;
}
}

or
public class Tiger implements Iterable {
public Iterator<Object> iterator() {
return null;
}
}

compiles fine.

Has anyone run into this before?

Thanks,
Ryan
Previous Topic:where is aspectjtools.jar?
Next Topic:Compile Error with "... implements ...<E>"
Goto Forum:
  


Current Time: Wed Apr 16 03:25:46 EDT 2014

Powered by FUDForum. Page generated in 0.01484 seconds