java.lang.AssertionError: assertion failed: cannot invokespecial java/util/Comparator.reversed, the interface is not a direct parent.

GitHub | lrytz | 3 months ago
  1. 0

    `-Xgen-mixin-forwarders` crashes for default methods

    GitHub | 3 months ago | lrytz
    java.lang.AssertionError: assertion failed: cannot invokespecial java/util/Comparator.reversed, the interface is not a direct parent.
  2. 0

    Exception while compiling with 2.9.2

    Google Groups | 5 years ago | Rostic
    java.lang.AssertionError: assertion failed: unsatisfiable cyclic dependency in 'trait XXXXX-MY-JAVA-INTERFACE-HERE'
  3. 0

    JUnit resident compiler bug / cross-talk between tests

    GitHub | 3 months ago | lrytz
    java.lang.AssertionError: assertion failed: The compiler issued non-allowed warnings or errors: pos: source-unitTestSource.scala,line-2,offset=34 illegal inheritance; superclass Object is not a subclass of the supertrait A of the mixin trait B ERROR
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Try to compile this code: {code} object Program { trait A trait C extends (A {}) } {code} Exception will occur: {code} Exception in thread "main" java.lang.AssertionError: assertion failed: A at scala.Predef$$.assert(Predef.scala:96) at scala.tools.nsc.typechecker.RefChecks$$RefCheckTransformer.transform(RefChecks.scala:811) at scala.tools.nsc.ast.Trees$$Transformer$$$$anonfun$$27.apply(Trees.scala:1331) at scala.tools.nsc.ast.Trees$$Transformer$$$$anonfun$$27.apply(Trees.scala:1331) at scala.List$$.loop$$0(List.scala:244) at scala.List$$.mapConserve(List.scala:261) at scala.tools.nsc.ast.Trees$$Transformer.transformTrees(Trees.scala:1331) at scala.tools.nsc.ast.Trees$$Transformer.transform(Trees.scala:1259) at scala.tools.nsc.typechecker.RefChecks$$RefCheckTransformer.transform(RefChecks.scala:836) at scala.tools.nsc.ast.Trees$$Transformer.transformTemplate(Trees.scala:1333) at scala.tools.nsc.ast.Trees$$Transformer.transform(Trees.scala:1321) at scala.tools.nsc.typechecker.RefChecks$$RefCheckTransformer.transform(RefChecks.scala:836) at scala.tools.nsc.ast.Trees$$Transformer$$$$anonfun$$27.apply(Trees.scala:1331) at scala.tools.nsc.ast.Trees$$Transformer$$$$anonfun$$27.apply(Trees.scala:1331) at scala.List$$.loop$$0(List.scala:244) at scala.List$$.mapConserve(List.scala:261) at scala.tools.nsc.ast.Trees$$Transformer.transformTrees(Trees.scala:1331) at scala.tools.nsc.ast.Trees$$Transformer.transform(Trees.scala:1259) at scala.tools.nsc.typechecker.RefChecks$$RefCheckTransformer.transform(RefChecks.scala:836) at scala.tools.nsc.ast.Trees$$Transformer.transformTemplate(Trees.scala:1333) at scala.tools.nsc.ast.Trees$$Transformer$$$$anonfun$$21.apply(Trees.scala:1231) at scala.tools.nsc.ast.Trees$$Transformer$$$$anonfun$$21.apply(Trees.scala:1231) at scala.tools.nsc.ast.Trees$$Transformer.atOwner(Trees.scala:1355) at scala.tools.nsc.ast.Trees$$Transformer.transform(Trees.scala:1230) at scala.tools.nsc.typechecker.RefChecks$$RefCheckTransformer.transform(RefChecks.scala:836) at scala.tools.nsc.typechecker.RefChecks$$RefCheckTransformer.transformStat(RefChecks.scala:681) at scala.tools.nsc.typechecker.RefChecks$$RefCheckTransformer$$$$anonfun$$10.apply(RefChecks.scala:588) at scala.tools.nsc.typechecker.RefChecks$$RefCheckTransformer$$$$anonfun$$10.apply(RefChecks.scala:588) at scala.List.flatMap(List.scala:1013) at scala.tools.nsc.typechecker.RefChecks$$RefCheckTransformer.transformStats(RefChecks.scala:588) at scala.tools.nsc.ast.Trees$$Transformer.transform(Trees.scala:1259) at scala.tools.nsc.typechecker.RefChecks$$RefCheckTransformer.transform(RefChecks.scala:836) at scala.tools.nsc.ast.Trees$$Transformer.transformTemplate(Trees.scala:1333) at scala.tools.nsc.ast.Trees$$Transformer$$$$anonfun$$21.apply(Trees.scala:1231) at scala.tools.nsc.ast.Trees$$Transformer$$$$anonfun$$21.apply(Trees.scala:1231) at scala.tools.nsc.ast.Trees$$Transformer.atOwner(Trees.scala:1355) at scala.tools.nsc.ast.Trees$$Transformer.transform(Trees.scala:1230) at scala.tools.nsc.typechecker.RefChecks$$RefCheckTransformer.transform(RefChecks.scala:836) at scala.tools.nsc.typechecker.RefChecks$$RefCheckTransformer.transformStat(RefChecks.scala:605) at scala.tools.nsc.typechecker.RefChecks$$RefCheckTransformer$$$$anonfun$$10.apply(RefChecks.scala:588) at scala.tools.nsc.typechecker.RefChecks$$RefCheckTransformer$$$$anonfun$$10.apply(RefChecks.scala:588) at scala.List.flatMap(List.scala:1013) at scala.tools.nsc.typechecker.RefChecks$$RefCheckTransformer.transformStats(RefChecks.scala:588) at scala.tools.nsc.ast.Trees$$Transformer$$$$anonfun$$20.apply(Trees.scala:1227) at scala.tools.nsc.ast.Trees$$Transformer$$$$anonfun$$20.apply(Trees.scala:1227) at scala.tools.nsc.ast.Trees$$Transformer.atOwner(Trees.scala:1355) at scala.tools.nsc.ast.Trees$$Transformer.transform(Trees.scala:1226) at scala.tools.nsc.typechecker.RefChecks$$RefCheckTransformer.transform(RefChecks.scala:836) at scala.tools.nsc.ast.Trees$$Transformer.transformUnit(Trees.scala:1350) at scala.tools.nsc.transform.Transform$$Phase.apply(Transform.scala:30) at scala.tools.nsc.Global$$GlobalPhase.applyPhase(Global.scala:249) at scala.tools.nsc.Global$$GlobalPhase$$$$anonfun$$2.apply(Global.scala:238) at scala.tools.nsc.Global$$GlobalPhase$$$$anonfun$$2.apply(Global.scala:238) at scala.Iterator$$class.foreach(Iterator.scala:375) at scala.collection.mutable.ListBuffer$$$$anon$$0.foreach(ListBuffer.scala:255) at scala.tools.nsc.Global$$GlobalPhase.run(Global.scala:238) at scala.tools.nsc.Global$$Run.compileSources(Global.scala:534) at scala.tools.nsc.Global$$Run.compile(Global.scala:615) at scala.tools.nsc.Main$$.process(Main.scala:86) at scala.tools.nsc.Main$$.main(Main.scala:107) at scala.tools.nsc.Main.main(Main.scala) {code}

    Scala JIRA | 9 years ago | Vladimir Reshetnikov
    java.lang.AssertionError: assertion failed: A
  6. 0

    BAMHeader not set when running on a cluster

    GitHub | 2 years ago | arahuja
    java.lang.AssertionError: assertion failed: Cannot return header if not attached.

    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

      assertion failed: cannot invokespecial java/util/Comparator.reversed, the interface is not a direct parent.

      at scala.tools.nsc.Global.assert()
    2. Scala Compiler
      BCodeSkelBuilder$PlainSkelBuilder.genDefDef
      1. scala.tools.nsc.Global.assert(Global.scala:229)
      2. scala.tools.nsc.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genCallMethod(BCodeBodyBuilder.scala:1089)
      3. scala.tools.nsc.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genApply(BCodeBodyBuilder.scala:584)
      4. scala.tools.nsc.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genLoad(BCodeBodyBuilder.scala:298)
      5. scala.tools.nsc.backend.jvm.BCodeSkelBuilder$PlainSkelBuilder.emitNormalMethodBody$1(BCodeSkelBuilder.scala:604)
      6. scala.tools.nsc.backend.jvm.BCodeSkelBuilder$PlainSkelBuilder.genDefDef(BCodeSkelBuilder.scala:636)
      6 frames