Name: akC45999 Date: 05/18/98
When java compiler (JDK1.2beta4F) compiles following example, stack trace printed:
sun.tools.java.CompilerError: checkMeet(), no abstract method
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Error.<init>(Compiled Code)
at sun.tools.java.CompilerError.<init>(Compiled Code)
at sun.tools.java.MemberDefinition.checkMeet(Compiled Code)
at sun.tools.java.ClassDefinition.collectOneClass(Compiled Code)
at sun.tools.java.ClassDefinition.collectInheritedMethods(Compiled Code)
at sun.tools.java.BinaryClass.basicCheck(Compiled Code)
at sun.tools.java.ClassDeclaration.getClassDefinition(Compiled Code)
at sun.tools.javac.SourceClass.checkSupers(Compiled Code)
at sun.tools.javac.SourceClass.resolveTypeStructure(Compiled Code)
at sun.tools.javac.SourceClass.basicCheck(Compiled Code)
at sun.tools.java.ClassDeclaration.getClassDefinition(Compiled Code)
at sun.tools.javac.Main.compile(Compiled Code)
at sun.tools.javac.Main.main(Compiled Code)
error: An error has occurred in the compiler; please file a bug report (http://java.sun.com/cgi-bin/bugreport.cgi).
1 error
To reproduce, run following script:
--------------------------------- file runtest
#!/bin/ksh
CLASSPATH=.
export CLASSPATH
rm -f *class
javac int1.java
javac int2.java
javac clss.java
--------------------------------- file int1.java
public interface int1 extends int2
{}
interface int2
{}
--------------------------------- file int2.java
public class int2 {
}
--------------------------------- file clss.java
public class clss implements int1
{}
======================================================================
- duplicates
-
JDK-4123500 Compiler dies when class attempts to implement itself
-
- Closed
-