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

GitHub | lrytz | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

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

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

    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