java.lang.AssertionError: isSubClass T

JDK Bug System | Webbug Group | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Bug ID: JDK-8056984 Exception in compiler: java.lang.AssertionError: isSubClass T

    java.com | 4 weeks ago
    java.lang.AssertionError: isSubClass T
  2. 0

    FULL PRODUCT VERSION : java version "1.8.0_20" Java(TM) SE Runtime Environment (build 1.8.0_20-b26) Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode) ADDITIONAL OS VERSION INFORMATION : Linux io.tomosw.bruker.de 3.7.10-1.40-desktop #1 SMP PREEMPT Thu Jul 10 11:22:12 UTC 2014 (9b06319) x86_64 x86_64 x86_64 GNU/Linux A DESCRIPTION OF THE PROBLEM : Assertion in javac while compiling classes which compiled fine using jdk8u5 REGRESSION. Last worked in version 8u5 ADDITIONAL REGRESSION INFORMATION: java version "1.8.0_05" Java(TM) SE Runtime Environment (build 1.8.0_05-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode) STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Compile the three files A.java, B.java and C.java javac A.java B.java C.java EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - The files are compiled without errors. ACTUAL - A java.lang.AssertionError is thrown in the compiler ERROR MESSAGES/STACK TRACES THAT OCCUR : An exception has occurred in the compiler (1.8.0_20). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you. java.lang.AssertionError: isSubClass T at com.sun.tools.javac.code.Symbol.isSubClass(Symbol.java:447) at com.sun.tools.javac.code.Symbol.isMemberOf(Symbol.java:456) at com.sun.tools.javac.code.Symbol$MethodSymbol.overrides(Symbol.java:1469) at com.sun.tools.javac.code.Types$ImplementationCache.implementationInternal(Types.java:2671) at com.sun.tools.javac.code.Types$ImplementationCache.get(Types.java:2653) at com.sun.tools.javac.code.Types.implementation(Types.java:2682) at com.sun.tools.javac.code.Symbol$MethodSymbol.implementation(Symbol.java:1529) at com.sun.tools.javac.code.Symbol$MethodSymbol.implementation(Symbol.java:1518) at com.sun.tools.javac.comp.Resolve.notOverriddenIn(Resolve.java:416) at com.sun.tools.javac.comp.Resolve.isAccessible(Resolve.java:402) at com.sun.tools.javac.comp.Resolve.isAccessible(Resolve.java:362) at com.sun.tools.javac.comp.Resolve.selectBest(Resolve.java:1448) at com.sun.tools.javac.comp.Resolve.findMethodInScope(Resolve.java:1618) at com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:1710) at com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:1662) at com.sun.tools.javac.comp.DeferredAttr$DeferredChecker$2.lookup(DeferredAttr.java:1325) at com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3325) at com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3310) at com.sun.tools.javac.comp.DeferredAttr$DeferredChecker.quicklyResolveMethod(DeferredAttr.java:1333) at com.sun.tools.javac.comp.DeferredAttr$DeferredChecker.visitApply(DeferredAttr.java:1223) at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465) at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49) at com.sun.tools.javac.comp.DeferredAttr$FilterScanner.scan(DeferredAttr.java:901) at com.sun.tools.javac.comp.DeferredAttr.isDeferred(DeferredAttr.java:1088) at com.sun.tools.javac.comp.Attr.attribArgs(Attr.java:701) at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1834) at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607) at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:656) at com.sun.tools.javac.comp.Attr.visitExec(Attr.java:1611) at com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1296) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607) at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676) at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:692) at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1142) at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:909) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607) at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676) at com.sun.tools.javac.comp.Attr.visitForeachLoop(Attr.java:1207) at com.sun.tools.javac.tree.JCTree$JCEnhancedForLoop.accept(JCTree.java:1035) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607) at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676) at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:692) at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1142) at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:909) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607) at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676) at com.sun.tools.javac.comp.Attr.visitMethodDef(Attr.java:1035) at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:778) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607) at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676) at com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:4342) at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4252) at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4181) at com.sun.tools.javac.comp.Attr.attrib(Attr.java:4156) at com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1248) at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:901) at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:860) at com.sun.tools.javac.main.Main.compile(Main.java:523) at com.sun.tools.javac.main.Main.compile(Main.java:381) at com.sun.tools.javac.main.Main.compile(Main.java:370) at com.sun.tools.javac.main.Main.compile(Main.java:361) at com.sun.tools.javac.Main.compile(Main.java:56) at com.sun.tools.javac.Main.main(Main.java:42) REPRODUCIBILITY : This bug can be reproduced always. ---------- BEGIN SOURCE ---------- A.java ====== import java.util.*; public class A<T extends B & C<T>> extends B { private final List<T> tList; public A(List<T> tList) { this.tList = new LinkedList<>(); for (T t : tList) { // If the following two lines are used instead of the third line // this class compiles with jdk8u20 as well // final T tClone = t.clone(""); // this.tList.add(tClone); this.tList.add(t.clone("")); } } public T clone(String s) { return null; } } B.java ====== public abstract class B { protected B() { } } C.java ====== public interface C<T> { public T clone(String s); } ---------- END SOURCE ---------- CUSTOMER SUBMITTED WORKAROUND : I added a comment in A.java how the source can be modified to make it compile with 8u20 as well.

    JDK Bug System | 3 years ago | Webbug Group
    java.lang.AssertionError: isSubClass T
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    FULL PRODUCT VERSION : java version "1.8.0_20" Java(TM) SE Runtime Environment (build 1.8.0_20-b26) Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode) ADDITIONAL OS VERSION INFORMATION : Linux io.tomosw.bruker.de 3.7.10-1.40-desktop #1 SMP PREEMPT Thu Jul 10 11:22:12 UTC 2014 (9b06319) x86_64 x86_64 x86_64 GNU/Linux A DESCRIPTION OF THE PROBLEM : Assertion in javac while compiling classes which compiled fine using jdk8u5 REGRESSION. Last worked in version 8u5 ADDITIONAL REGRESSION INFORMATION: java version "1.8.0_05" Java(TM) SE Runtime Environment (build 1.8.0_05-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode) STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Compile the three files A.java, B.java and C.java javac A.java B.java C.java EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - The files are compiled without errors. ACTUAL - A java.lang.AssertionError is thrown in the compiler ERROR MESSAGES/STACK TRACES THAT OCCUR : An exception has occurred in the compiler (1.8.0_20). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you. java.lang.AssertionError: isSubClass T at com.sun.tools.javac.code.Symbol.isSubClass(Symbol.java:447) at com.sun.tools.javac.code.Symbol.isMemberOf(Symbol.java:456) at com.sun.tools.javac.code.Symbol$MethodSymbol.overrides(Symbol.java:1469) at com.sun.tools.javac.code.Types$ImplementationCache.implementationInternal(Types.java:2671) at com.sun.tools.javac.code.Types$ImplementationCache.get(Types.java:2653) at com.sun.tools.javac.code.Types.implementation(Types.java:2682) at com.sun.tools.javac.code.Symbol$MethodSymbol.implementation(Symbol.java:1529) at com.sun.tools.javac.code.Symbol$MethodSymbol.implementation(Symbol.java:1518) at com.sun.tools.javac.comp.Resolve.notOverriddenIn(Resolve.java:416) at com.sun.tools.javac.comp.Resolve.isAccessible(Resolve.java:402) at com.sun.tools.javac.comp.Resolve.isAccessible(Resolve.java:362) at com.sun.tools.javac.comp.Resolve.selectBest(Resolve.java:1448) at com.sun.tools.javac.comp.Resolve.findMethodInScope(Resolve.java:1618) at com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:1710) at com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:1662) at com.sun.tools.javac.comp.DeferredAttr$DeferredChecker$2.lookup(DeferredAttr.java:1325) at com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3325) at com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3310) at com.sun.tools.javac.comp.DeferredAttr$DeferredChecker.quicklyResolveMethod(DeferredAttr.java:1333) at com.sun.tools.javac.comp.DeferredAttr$DeferredChecker.visitApply(DeferredAttr.java:1223) at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465) at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49) at com.sun.tools.javac.comp.DeferredAttr$FilterScanner.scan(DeferredAttr.java:901) at com.sun.tools.javac.comp.DeferredAttr.isDeferred(DeferredAttr.java:1088) at com.sun.tools.javac.comp.Attr.attribArgs(Attr.java:701) at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1834) at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607) at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:656) at com.sun.tools.javac.comp.Attr.visitExec(Attr.java:1611) at com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1296) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607) at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676) at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:692) at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1142) at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:909) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607) at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676) at com.sun.tools.javac.comp.Attr.visitForeachLoop(Attr.java:1207) at com.sun.tools.javac.tree.JCTree$JCEnhancedForLoop.accept(JCTree.java:1035) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607) at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676) at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:692) at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1142) at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:909) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607) at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676) at com.sun.tools.javac.comp.Attr.visitMethodDef(Attr.java:1035) at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:778) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607) at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676) at com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:4342) at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4252) at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4181) at com.sun.tools.javac.comp.Attr.attrib(Attr.java:4156) at com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1248) at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:901) at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:860) at com.sun.tools.javac.main.Main.compile(Main.java:523) at com.sun.tools.javac.main.Main.compile(Main.java:381) at com.sun.tools.javac.main.Main.compile(Main.java:370) at com.sun.tools.javac.main.Main.compile(Main.java:361) at com.sun.tools.javac.Main.compile(Main.java:56) at com.sun.tools.javac.Main.main(Main.java:42) REPRODUCIBILITY : This bug can be reproduced always. ---------- BEGIN SOURCE ---------- A.java ====== import java.util.*; public class A<T extends B & C<T>> extends B { private final List<T> tList; public A(List<T> tList) { this.tList = new LinkedList<>(); for (T t : tList) { // If the following two lines are used instead of the third line // this class compiles with jdk8u20 as well // final T tClone = t.clone(""); // this.tList.add(tClone); this.tList.add(t.clone("")); } } public T clone(String s) { return null; } } B.java ====== public abstract class B { protected B() { } } C.java ====== public interface C<T> { public T clone(String s); } ---------- END SOURCE ---------- CUSTOMER SUBMITTED WORKAROUND : I added a comment in A.java how the source can be modified to make it compile with 8u20 as well.

    JDK Bug System | 3 years ago | Webbug Group
    java.lang.AssertionError: isSubClass T
  5. 0

    FULL PRODUCT VERSION : java version "1.8.0_92" Java(TM) SE Runtime Environment (build 1.8.0_92-b14) Java HotSpot(TM) Client VM (build 25.92-b14, mixed mode) ADDITIONAL OS VERSION INFORMATION : Microsoft Windows [Version 6.1.7601] A DESCRIPTION OF THE PROBLEM : Bug JDK-8133123 has been fixed for java 9, but not for java 8. It should be fixed for java 8, too. The problem is still occurring with jdk 1.8.0_92. Using javac from jdk 9-ea+118, compilation works fine. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : 1.) Download the java files attached to JDK-8133123 2.) complie them using javac from jdk 1.8.0_92: javac *.java EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - Should compile correctly ACTUAL - Compiler crashes with the following stacktrace: An exception has occurred in the compiler (1.8.0_92). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) af ter checking the Bug Database (http://bugs.java.com) for duplicates. Include you r program and the following diagnostic in your report. Thank you. java.lang.AssertionError: isSubClass T at com.sun.tools.javac.code.Symbol.isSubClass(Symbol.java:447) at com.sun.tools.javac.code.Symbol.isMemberOf(Symbol.java:456) at com.sun.tools.javac.code.Symbol$MethodSymbol.overrides(Symbol.java:14 79) at com.sun.tools.javac.code.Types$ImplementationCache.implementationInte rnal(Types.java:2693) at com.sun.tools.javac.code.Types$ImplementationCache.get(Types.java:267 5) at com.sun.tools.javac.code.Types.implementation(Types.java:2704) at com.sun.tools.javac.code.Symbol$MethodSymbol.implementation(Symbol.ja va:1539) at com.sun.tools.javac.code.Symbol$MethodSymbol.implementation(Symbol.ja va:1528) at com.sun.tools.javac.comp.Resolve.notOverriddenIn(Resolve.java:419) at com.sun.tools.javac.comp.Resolve.isAccessible(Resolve.java:405) at com.sun.tools.javac.comp.Resolve.isAccessible(Resolve.java:365) at com.sun.tools.javac.comp.Resolve.selectBest(Resolve.java:1463) at com.sun.tools.javac.comp.Resolve.findMethodInScope(Resolve.java:1633) at com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:1725) at com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:1677) at com.sun.tools.javac.comp.Resolve$MethodReferenceLookupHelper.lookup(R esolve.java:3192) at com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3348) at com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3333) at com.sun.tools.javac.comp.Resolve.getMemberReference(Resolve.java:2741 ) at com.sun.tools.javac.comp.DeferredAttr$DeferredChecker.visitReference( DeferredAttr.java:1183) at com.sun.tools.javac.tree.JCTree$JCMemberReference.accept(JCTree.java: 1973) at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49) at com.sun.tools.javac.comp.DeferredAttr$FilterScanner.scan(DeferredAttr .java:913) at com.sun.tools.javac.comp.DeferredAttr.isDeferred(DeferredAttr.java:11 00) at com.sun.tools.javac.comp.Attr.attribArgs(Attr.java:669) at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1815) at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java :1465) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:575) at com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr. java:387) at com.sun.tools.javac.comp.DeferredAttr$2.complete(DeferredAttr.java:28 0) at com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr .java:246) at com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr .java:233) at com.sun.tools.javac.comp.Resolve$MethodResultInfo.check(Resolve.java: 1008) at com.sun.tools.javac.comp.Resolve$4.checkArg(Resolve.java:835) at com.sun.tools.javac.comp.Resolve$AbstractMethodCheck.argumentsAccepta ble(Resolve.java:735) at com.sun.tools.javac.comp.Resolve$4.argumentsAcceptable(Resolve.java:8 44) at com.sun.tools.javac.comp.Infer.instantiateMethod(Infer.java:162) at com.sun.tools.javac.comp.Resolve.rawInstantiate(Resolve.java:567) at com.sun.tools.javac.comp.Resolve.selectBest(Resolve.java:1446) at com.sun.tools.javac.comp.Resolve.findMethodInScope(Resolve.java:1633) at com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:1704) at com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:1677) at com.sun.tools.javac.comp.Resolve$9.doLookup(Resolve.java:2436) at com.sun.tools.javac.comp.Resolve$BasicLookupHelper.lookup(Resolve.jav a:3097) at com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3348) at com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java: 2433) at com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java: 2427) at com.sun.tools.javac.comp.Attr.selectSym(Attr.java:3395) at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3277) at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897 ) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:575) at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1824) at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java :1465) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:575) at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:624) at com.sun.tools.javac.comp.Attr.visitExec(Attr.java:1592) at com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.j ava:1296) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:575) at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:644) at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:660) at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1123) at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:909) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:575) at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:644) at com.sun.tools.javac.comp.Attr.visitMethodDef(Attr.java:1012) at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:778) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:575) at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:644) at com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:4363) at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4271) at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4200) at com.sun.tools.javac.comp.Attr.attrib(Attr.java:4175) at com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:124 8) at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:901) at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:860) at com.sun.tools.javac.main.Main.compile(Main.java:523) at com.sun.tools.javac.main.Main.compile(Main.java:381) at com.sun.tools.javac.main.Main.compile(Main.java:370) at com.sun.tools.javac.main.Main.compile(Main.java:361) at com.sun.tools.javac.Main.compile(Main.java:56) at com.sun.tools.javac.Main.main(Main.java:42) REPRODUCIBILITY : This bug can be reproduced always. ---------- BEGIN SOURCE ---------- See java files attachted to JDK-8133123 ---------- END SOURCE ---------- CUSTOMER SUBMITTED WORKAROUND : See the the CollectionConsumer class in the test case attached to JDK-8133123 for a working, equivalent alternative

    JDK Bug System | 10 months ago | Webbug Group
    java.lang.AssertionError: isSubClass T

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.AssertionError

      isSubClass T

      at com.sun.tools.javac.code.Symbol.isSubClass()
    2. Java Tools
      Main.main
      1. com.sun.tools.javac.code.Symbol.isSubClass(Symbol.java:447)
      2. com.sun.tools.javac.code.Symbol.isMemberOf(Symbol.java:456)
      3. com.sun.tools.javac.code.Symbol$MethodSymbol.overrides(Symbol.java:1469)
      4. com.sun.tools.javac.code.Types$ImplementationCache.implementationInternal(Types.java:2671)
      5. com.sun.tools.javac.code.Types$ImplementationCache.get(Types.java:2653)
      6. com.sun.tools.javac.code.Types.implementation(Types.java:2682)
      7. com.sun.tools.javac.code.Symbol$MethodSymbol.implementation(Symbol.java:1529)
      8. com.sun.tools.javac.code.Symbol$MethodSymbol.implementation(Symbol.java:1518)
      9. com.sun.tools.javac.comp.Resolve.notOverriddenIn(Resolve.java:416)
      10. com.sun.tools.javac.comp.Resolve.isAccessible(Resolve.java:402)
      11. com.sun.tools.javac.comp.Resolve.isAccessible(Resolve.java:362)
      12. com.sun.tools.javac.comp.Resolve.selectBest(Resolve.java:1448)
      13. com.sun.tools.javac.comp.Resolve.findMethodInScope(Resolve.java:1618)
      14. com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:1710)
      15. com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:1662)
      16. com.sun.tools.javac.comp.DeferredAttr$DeferredChecker$2.lookup(DeferredAttr.java:1325)
      17. com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3325)
      18. com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3310)
      19. com.sun.tools.javac.comp.DeferredAttr$DeferredChecker.quicklyResolveMethod(DeferredAttr.java:1333)
      20. com.sun.tools.javac.comp.DeferredAttr$DeferredChecker.visitApply(DeferredAttr.java:1223)
      21. com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
      22. com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
      23. com.sun.tools.javac.comp.DeferredAttr$FilterScanner.scan(DeferredAttr.java:901)
      24. com.sun.tools.javac.comp.DeferredAttr.isDeferred(DeferredAttr.java:1088)
      25. com.sun.tools.javac.comp.Attr.attribArgs(Attr.java:701)
      26. com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1834)
      27. com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
      28. com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607)
      29. com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:656)
      30. com.sun.tools.javac.comp.Attr.visitExec(Attr.java:1611)
      31. com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1296)
      32. com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607)
      33. com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676)
      34. com.sun.tools.javac.comp.Attr.attribStats(Attr.java:692)
      35. com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1142)
      36. com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:909)
      37. com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607)
      38. com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676)
      39. com.sun.tools.javac.comp.Attr.visitForeachLoop(Attr.java:1207)
      40. com.sun.tools.javac.tree.JCTree$JCEnhancedForLoop.accept(JCTree.java:1035)
      41. com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607)
      42. com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676)
      43. com.sun.tools.javac.comp.Attr.attribStats(Attr.java:692)
      44. com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1142)
      45. com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:909)
      46. com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607)
      47. com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676)
      48. com.sun.tools.javac.comp.Attr.visitMethodDef(Attr.java:1035)
      49. com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:778)
      50. com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607)
      51. com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676)
      52. com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:4342)
      53. com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4252)
      54. com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4181)
      55. com.sun.tools.javac.comp.Attr.attrib(Attr.java:4156)
      56. com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1248)
      57. com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:901)
      58. com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:860)
      59. com.sun.tools.javac.main.Main.compile(Main.java:523)
      60. com.sun.tools.javac.main.Main.compile(Main.java:381)
      61. com.sun.tools.javac.main.Main.compile(Main.java:370)
      62. com.sun.tools.javac.main.Main.compile(Main.java:361)
      63. com.sun.tools.javac.Main.compile(Main.java:56)
      64. com.sun.tools.javac.Main.main(Main.java:42)
      64 frames