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

ClassCastException on JSR308 tests

    XMLWordPrintable

Details

    • b75
    • b98
    • Verified

    Description

      Several tests on JSR308 fail with compiler error:

      An exception has occurred in the compiler (1.8.0-ea). 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.ClassCastException: com.sun.tools.javac.code.Type$AnnotatedType cannot be cast to com.sun.tools.javac.code.Type$ArrayType
      at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3028)
      at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1863)
      at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:601)
      at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:619)
      at com.sun.tools.javac.comp.Attr.visitVarDef(Attr.java:1079)
      at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:828)
      at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:601)
      at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:646)
      at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:662)
      at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1116)
      at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:884)
      at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:601)
      at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:646)
      at com.sun.tools.javac.comp.Attr.visitMethodDef(Attr.java:1019)
      at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:771)
      at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:601)
      at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:646)
      at com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:4066)
      at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:3975)
      at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:3909)
      at com.sun.tools.javac.comp.Attr.attrib(Attr.java:3883)
      at com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1254)
      at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:907)
      at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:866)
      at com.sun.tools.javac.main.Main.compile(Main.java:506)
      at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:129)
      at com.sun.jck.lib.CompilerAPICommand.doCompile(CompilerAPICommand.java:362)
      at com.sun.jck.lib.SharedCompilerAPICmd.doCompile(SharedCompilerAPICmd.java:89)
      at com.sun.jck.lib.SharedCompilerAPICmd.run(SharedCompilerAPICmd.java:69)
      at javasoft.sqe.jckutils.lib.GenLangSigFileCommand.generate(GenLangSigFileCommand.java:99)
      at javasoft.sqe.jckutils.lib.GenLangBaseCommand.run(GenLangBaseCommand.java:89)
      at com.sun.javatest.agent.Agent$Task.executeCommand(Agent.java:839)
      at com.sun.javatest.agent.Agent$Task.execute(Agent.java:783)
      at com.sun.javatest.agent.Agent$Task.handleRequest(Agent.java:645)
      at com.sun.javatest.agent.Agent.handleRequestsUntilClosed(Agent.java:416)
      at com.sun.javatest.agent.Agent.access$000(Agent.java:60)
      at com.sun.javatest.agent.Agent$1.run(Agent.java:282)
      at java.lang.Thread.run(Thread.java:722)


      The list of the tests:
      lang/ANNOT/annot107/annot10701m803
      lang/ANNOT/annot107/annot10701m815
      lang/ANNOT/annot107/annot10701m826
      lang/ANNOT/annot107/annot10701m837
      lang/ANNOT/annot107/annot10701m872
      lang/ANNOT/annot107/annot10701m883
      lang/ANNOT/annot107/annot10701m895
      lang/ANNOT/annot107/annot10701m906
      lang/ANNOT/annot107/annot10701m917
      lang/ANNOT/annot107/annot10701m928
      lang/ANNOT/annot107/annot10701m931
      lang/ANNOT/annot107/annot10701m975
      lang/ANNOT/annot107/annot10701m986
      lang/ANNOT/annot107/annot10701m997

      Attachments

        Activity

          People

            emc Eric Mccorkle
            enekipel Ella Nekipelova (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: