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

java.lang.ClassCastException: com.sun.tools.javac.tree.JCTree$JCLiteral cannot b

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 7u45
    • tools
    • x86_64
    • linux

      FULL PRODUCT VERSION :
      Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
      Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Fedora release 17 (Beefy Miracle)


      A DESCRIPTION OF THE PROBLEM :
      main:
      [INFO] Executed tasks
      [INFO]
      [INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ test-suite ---
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 82 source files to /home/chepa653/Dev/INFINISPAN/infinispan-integrated/server/integration/testsuite/target/test-classes
      An exception has occurred in the compiler (1.7.0_45). 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.tree.JCTree$JCLiteral cannot be cast to com.sun.tools.javac.tree.JCTree$JCAnnotation
      at com.sun.tools.javac.comp.Annotate.enterAttributeValue(Annotate.java:229)
      at com.sun.tools.javac.comp.Annotate.enterAttributeValue(Annotate.java:243)
      at com.sun.tools.javac.comp.Annotate.enterAnnotation(Annotate.java:181)
      at com.sun.tools.javac.comp.MemberEnter.enterAnnotations(MemberEnter.java:783)
      at com.sun.tools.javac.comp.MemberEnter.access$300(MemberEnter.java:57)
      at com.sun.tools.javac.comp.MemberEnter$5.enterAnnotation(MemberEnter.java:751)
      at com.sun.tools.javac.comp.Annotate.flush(Annotate.java:109)
      at com.sun.tools.javac.comp.Annotate.enterDone(Annotate.java:101)
      at com.sun.tools.javac.comp.Enter.complete(Enter.java:510)
      at com.sun.tools.javac.comp.Enter.main(Enter.java:469)
      at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:929)
      at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:824)
      at com.sun.tools.javac.main.Main.compile(Main.java:439)
      at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:132)
      at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:126)
      at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile(JavacCompiler.java:170)
      at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:684)
      at org.apache.maven.plugin.compiler.TestCompilerMojo.execute(TestCompilerMojo.java:152)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      [INFO] -------------------------------------------------------------
      [WARNING] COMPILATION WARNING :
      [INFO] -------------------------------------------------------------
      [WARNING] bootstrap class path not set in conjunction with -source 1.6


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      git clone https://github.com/infinispan/infinispan
      cd infinispan
      mvn clean package -f server/integration/pom.xml -DskipTests

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Build SUCCESS
      ACTUAL -
      Build FAILURE

      REPRODUCIBILITY :
      This bug can be reproduced always.

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: