Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8277622

javac AssertionError at jdk.compiler/com.sun.tools.javac.util.Assert.error(Assert.java:155)

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      ADDITIONAL SYSTEM INFORMATION :
      Ubuntu 18

      A DESCRIPTION OF THE PROBLEM :
      root@c8:~# /root/jdk-17/bin/javac -source 11 -target 11 -nowarn -encoding utf8 -Xdiags:verbose -cp /root/.javax/x30.jar:/root/dexcompiler/android.jar:/root/dexcompiler/support-v4-22.2.1.jar:/root/javafx/javafx.base.jar:/root/javafx/javafx.graphics.jar:/root/javafx/javafx.swing.jar -d /root/JavaX-Caches/tmp_434758436 /root/JavaX-Caches/tmp_1825616358/loadableUtils/utils.java
      Note: /root/JavaX-Caches/tmp_1825616358/loadableUtils/utils.java uses or overrides a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      Note: /root/JavaX-Caches/tmp_1825616358/loadableUtils/utils.java uses unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      An exception has occurred in the compiler (17.0.1). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program, the following diagnostic, and the parameters passed to the Java compiler in your report. Thank you.
      java.lang.AssertionError
      at jdk.compiler/com.sun.tools.javac.util.Assert.error(Assert.java:155)
      at jdk.compiler/com.sun.tools.javac.util.Assert.check(Assert.java:46)
      at jdk.compiler/com.sun.tools.javac.comp.Resolve.findFun(Resolve.java:1986)
      at jdk.compiler/com.sun.tools.javac.comp.Resolve$10.doLookup(Resolve.java:2705)
      at jdk.compiler/com.sun.tools.javac.comp.Resolve$BasicLookupHelper.lookup(Resolve.java:3454)
      at jdk.compiler/com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3704)
      at jdk.compiler/com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3689)
      at jdk.compiler/com.sun.tools.javac.comp.Resolve.resolveMethod(Resolve.java:2701)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.visitIdent(Attr.java:4176)
      at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCIdent.accept(JCTree.java:2584)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:674)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.visitApply(Attr.java:2563)
      at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1797)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:674)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:727)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.visitBinary(Attr.java:3970)
      at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBinary.accept(JCTree.java:2156)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:674)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:727)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.visitBinary(Attr.java:3970)
      at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBinary.accept(JCTree.java:2156)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:674)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:727)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.visitBinary(Attr.java:3970)
      at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBinary.accept(JCTree.java:2156)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:674)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:727)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.visitBinary(Attr.java:3970)
      at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBinary.accept(JCTree.java:2156)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:674)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:727)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.visitBinary(Attr.java:3970)
      at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBinary.accept(JCTree.java:2156)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:674)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.visitReturn(Attr.java:2421)
      at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCReturn.accept(JCTree.java:1709)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:674)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:748)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStats(Attr.java:767)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1445)
      at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1091)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:674)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:748)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.visitMethodDef(Attr.java:1235)
      at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:921)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:674)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:748)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:5474)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribClass(Attr.java:5365)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribClass(Attr.java:5196)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.visitClassDef(Attr.java:977)
      at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:819)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:674)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:748)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:5474)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribClass(Attr.java:5365)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribClass(Attr.java:5221)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribClass(Attr.java:5217)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribClass(Attr.java:5196)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.visitClassDef(Attr.java:977)
      at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:819)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:674)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:748)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.visitAnonymousClassDefinition(Attr.java:2956)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.visitNewClass(Attr.java:2847)
      at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1852)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:674)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.visitReturn(Attr.java:2421)
      at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCReturn.accept(JCTree.java:1709)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:674)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:748)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStats(Attr.java:767)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1445)
      at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1091)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:674)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:748)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStats(Attr.java:767)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1445)
      at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1091)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:674)
      at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:500)
      at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:480)
      at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:467)
      at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr.attribSpeculativeLambda(DeferredAttr.java:442)
      at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredAttrNode$StructuralStuckChecker.canLambdaBodyCompleteNormally(DeferredAttr.java:881)
      at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredAttrNode$StructuralStuckChecker.visitLambda(DeferredAttr.java:859)
      at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCLambda.accept(JCTree.java:1974)
      at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredAttrNode$StructuralStuckChecker.check(DeferredAttr.java:814)
      at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredAttrNode.process(DeferredAttr.java:761)
      at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredAttrContext.complete(DeferredAttr.java:608)
      at jdk.compiler/com.sun.tools.javac.comp.Infer.instantiateMethod(Infer.java:215)
      at jdk.compiler/com.sun.tools.javac.comp.Resolve.rawInstantiate(Resolve.java:621)
      at jdk.compiler/com.sun.tools.javac.comp.Resolve.selectBest(Resolve.java:1582)
      at jdk.compiler/com.sun.tools.javac.comp.Resolve.findMethodInScope(Resolve.java:1788)
      at jdk.compiler/com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:1858)
      at jdk.compiler/com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:1832)
      at jdk.compiler/com.sun.tools.javac.comp.Resolve.findFun(Resolve.java:1989)
      at jdk.compiler/com.sun.tools.javac.comp.Resolve$10.doLookup(Resolve.java:2705)
      at jdk.compiler/com.sun.tools.javac.comp.Resolve$BasicLookupHelper.lookup(Resolve.java:3454)
      at jdk.compiler/com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3704)
      at jdk.compiler/com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3689)
      at jdk.compiler/com.sun.tools.javac.comp.Resolve.resolveMethod(Resolve.java:2701)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.visitIdent(Attr.java:4176)
      at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCIdent.accept(JCTree.java:2584)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:674)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.visitApply(Attr.java:2563)
      at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1797)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:674)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:720)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.visitVarDef(Attr.java:1311)
      at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:1027)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:674)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:748)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStats(Attr.java:767)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1445)
      at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1091)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:674)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:748)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.visitMethodDef(Attr.java:1235)
      at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:921)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:674)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:748)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:5474)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribClass(Attr.java:5365)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribClass(Attr.java:5196)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.visitClassDef(Attr.java:977)
      at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:819)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:674)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:748)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:5474)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribClass(Attr.java:5365)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribClass(Attr.java:5196)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attrib(Attr.java:5141)
      at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1317)
      at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:946)
      at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:317)
      at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:176)
      at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:64)
      at jdk.compiler/com.sun.tools.javac.Main.main(Main.java:50)
      printing javac parameters to: /root/javac.20211101_204403.args

      root@c8:~# cat javac.20211101_204403.args
      -source
      11
      -target
      11
      -nowarn
      -encoding
      utf8
      -Xdiags:verbose
      -cp
      /root/.javax/x30.jar:/root/dexcompiler/android.jar:/root/dexcompiler/support-v4-22.2.1.jar:/root/javafx/javafx.base.jar:/root/javafx/javafx.graphics.jar:/root/javafx/javafx.swing.jar
      -d
      /root/JavaX-Caches/tmp_434758436
      /root/JavaX-Caches/tmp_1825616358/loadableUtils/utils.java

      utils.java downloadable at: http://botcompany.de:8081/javac-error-src.java

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run javac as shown above

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      javac compiles
      ACTUAL -
      javac throws AssertionError

      ---------- BEGIN SOURCE ----------
      see above
      ---------- END SOURCE ----------

      FREQUENCY : always


        Attachments

          Activity

            People

            Assignee:
            adev ANUPAM DEV
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: