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

Fail to compile Java, caused by Exception java.lang.AssertionError: typecode WILDCARD

XMLWordPrintable

    • x86_64
    • linux

      FULL PRODUCT VERSION :


      A DESCRIPTION OF THE PROBLEM :
       GENERIC [javac] An exception has occurred in the compiler (1.8.0_112). 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 and the following diagnostic in your report. Thank you.
      GENERIC [javac] java.lang.AssertionError: typecode WILDCARD
      GENERIC [javac] at com.sun.tools.javac.jvm.Code.typecode(Code.java:248)
      GENERIC [javac] at com.sun.tools.javac.jvm.Code.width(Code.java:272)
      GENERIC [javac] at com.sun.tools.javac.jvm.Code.width(Code.java:280)
      GENERIC [javac] at com.sun.tools.javac.jvm.ClassReader.setParameterNames(ClassReader.java:2139)
      GENERIC [javac] at com.sun.tools.javac.jvm.ClassReader.readMethod(ClassReader.java:2049)
      GENERIC [javac] at com.sun.tools.javac.jvm.ClassReader.readClass(ClassReader.java:2252)
      GENERIC [javac] at com.sun.tools.javac.jvm.ClassReader.readClassFile(ClassReader.java:2324)
      GENERIC [javac] at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2511)
      GENERIC [javac] at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:2442)
      GENERIC [javac] at com.sun.tools.javac.jvm.ClassReader.access$000(ClassReader.java:76)
      GENERIC [javac] at com.sun.tools.javac.jvm.ClassReader$1.complete(ClassReader.java:240)
      GENERIC [javac] at com.sun.tools.javac.code.Symbol.complete(Symbol.java:574)
      GENERIC [javac] at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1037)
      GENERIC [javac] at com.sun.tools.javac.jvm.ClassReader.loadClass(ClassReader.java:2623)
      GENERIC [javac] at com.sun.tools.javac.comp.Resolve.loadClass(Resolve.java:1907)
      GENERIC [javac] at com.sun.tools.javac.comp.Resolve.findIdentInPackage(Resolve.java:2146)
      GENERIC [javac] at com.sun.tools.javac.comp.Attr.selectSym(Attr.java:3391)
      GENERIC [javac] at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3278)
      GENERIC [javac] at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
      GENERIC [javac] at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:576)
      GENERIC [javac] at com.sun.tools.javac.comp.Attr.attribType(Attr.java:638)
      GENERIC [javac] at com.sun.tools.javac.comp.Attr.attribType(Attr.java:631)
      GENERIC [javac] at com.sun.tools.javac.comp.MemberEnter.attribImportType(MemberEnter.java:834)
      GENERIC [javac] at com.sun.tools.javac.comp.MemberEnter.visitImport(MemberEnter.java:558)
      GENERIC [javac] at com.sun.tools.javac.tree.JCTree$JCImport.accept(JCTree.java:571)
      GENERIC [javac] at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:437)
      GENERIC [javac] at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:449)
      GENERIC [javac] at com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:528)
      GENERIC [javac] at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:518)
      GENERIC [javac] at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:437)
      GENERIC [javac] at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:1038)
      GENERIC [javac] at com.sun.tools.javac.code.Symbol.complete(Symbol.java:574)
      GENERIC [javac] at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1037)
      GENERIC [javac] at com.sun.tools.javac.code.Symbol$ClassSymbol.flags(Symbol.java:973)
      GENERIC [javac] at com.sun.tools.javac.comp.Resolve.isAccessible(Resolve.java:299)
      GENERIC [javac] at com.sun.tools.javac.comp.Resolve.isAccessible(Resolve.java:294)
      GENERIC [javac] at com.sun.tools.javac.comp.Resolve.loadClass(Resolve.java:1908)
      GENERIC [javac] at com.sun.tools.javac.comp.Resolve.findGlobalType(Resolve.java:2007)
      GENERIC [javac] at com.sun.tools.javac.comp.Resolve.findType(Resolve.java:2077)
      GENERIC [javac] at com.sun.tools.javac.comp.Resolve.findIdent(Resolve.java:2110)
      GENERIC [javac] at com.sun.tools.javac.comp.Resolve.resolveIdent(Resolve.java:2384)
      GENERIC [javac] at com.sun.tools.javac.comp.Attr.visitIdent(Attr.java:3170)
      GENERIC [javac] at com.sun.tools.javac.tree.JCTree$JCIdent.accept(JCTree.java:2011)
      GENERIC [javac] at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:576)
      GENERIC [javac] at com.sun.tools.javac.comp.Attr.attribType(Attr.java:638)
      GENERIC [javac] at com.sun.tools.javac.comp.Attr.attribType(Attr.java:631)
      GENERIC [javac] at com.sun.tools.javac.comp.MemberEnter.signature(MemberEnter.java:390)
      GENERIC [javac] at com.sun.tools.javac.comp.MemberEnter.visitMethodDef(MemberEnter.java:581)
      GENERIC [javac] at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:778)
      GENERIC [javac] at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:437)
      GENERIC [javac] at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:449)
      GENERIC [javac] at com.sun.tools.javac.comp.MemberEnter.finishClass(MemberEnter.java:459)
      GENERIC [javac] at com.sun.tools.javac.comp.MemberEnter.finish(MemberEnter.java:1404)
      GENERIC [javac] at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:1199)
      GENERIC [javac] at com.sun.tools.javac.code.Symbol.complete(Symbol.java:574)
      GENERIC [javac] at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1037)
      GENERIC [javac] at com.sun.tools.javac.comp.Enter.complete(Enter.java:493)
      GENERIC [javac] at com.sun.tools.javac.comp.Enter.main(Enter.java:471)
      GENERIC [javac] at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:982)
      GENERIC [javac] at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:857)
      GENERIC [javac] at com.sun.tools.javac.main.Main.compile(Main.java:523)
      GENERIC [javac] at com.sun.tools.javac.main.Main.compile(Main.java:381)
      GENERIC [javac] at com.sun.tools.javac.main.Main.compile(Main.java:370)
      GENERIC [javac] at com.sun.tools.javac.main.Main.compile(Main.java:361)
      GENERIC [javac] at com.sun.tools.javac.Main.compile(Main.java:56)
      GENERIC [javac] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      GENERIC [javac] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      GENERIC [javac] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      GENERIC [javac] at java.lang.reflect.Method.invoke(Method.java:498)
      GENERIC [javac] at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:57)
      GENERIC [javac] at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1395)
      GENERIC [javac] at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:1121)
      GENERIC [javac] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
      GENERIC [javac] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      GENERIC [javac] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      GENERIC [javac] at java.lang.reflect.Method.invoke(Method.java:498)
      GENERIC [javac] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      GENERIC [javac] at org.apache.tools.ant.Task.perform(Task.java:348)
      GENERIC [javac] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
      GENERIC [javac] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
      GENERIC [javac] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      GENERIC [javac] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      GENERIC [javac] at java.lang.reflect.Method.invoke(Method.java:498)
      GENERIC [javac] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      GENERIC [javac] at org.apache.tools.ant.Task.perform(Task.java:348)
      GENERIC [javac] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:402)
      GENERIC [javac] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
      GENERIC [javac] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      GENERIC [javac] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      GENERIC [javac] at java.lang.reflect.Method.invoke(Method.java:498)
      GENERIC [javac] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      GENERIC [javac] at org.apache.tools.ant.Task.perform(Task.java:348)
      GENERIC [javac] at org.apache.tools.ant.Target.execute(Target.java:435)
      GENERIC [javac] at org.apache.tools.ant.Target.performTasks(Target.java:456)
      GENERIC [javac] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
      GENERIC [javac] at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
      GENERIC [javac] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      GENERIC [javac] at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
      GENERIC [javac] at org.apache.tools.ant.Main.runBuild(Main.java:857)
      GENERIC [javac] at org.apache.tools.ant.Main.startAnt(Main.java:236)
      GENERIC [javac] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:287)
      GENERIC [javac] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:113)


      REPRODUCIBILITY :
      This bug can be reproduced always.

            fmatte Fairoz Matte
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: