Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » Compile Error with "... implements ...<E>"
Compile Error with "... implements ...<E>" [message #50070] Mon, 21 March 2005 18:05 Go to next message
Eclipse UserFriend
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
Re: Compile Error with "... implements ...<E>" [message #50106 is a reply to message #50070] Mon, 21 March 2005 18:07 Go to previous message
Eclipse UserFriend
Originally posted by: rstoner.allstontrading.com

I forgot to mention, I'm using Sun's 1.5.0_01 JDK.
Re: Compile Error with "... implements ...<E>" [message #587543 is a reply to message #50070] Mon, 21 March 2005 18:07 Go to previous message
Eclipse UserFriend
Originally posted by: rstoner.allstontrading.com

I forgot to mention, I'm using Sun's 1.5.0_01 JDK.
Previous Topic:Compile Error with "... implements ...<E>"
Next Topic:where is aspectjtools.jar?
Goto Forum:
  


Current Time: Fri Apr 19 11:38:59 GMT 2024

Powered by FUDForum. Page generated in 0.01860 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top