Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6288

Javac Crash when processing option -1.6/-6 -source 1.6

Add voteWatch issue
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • JDK
    • None
    • javac -version
      Eclipse Java Compiler 0.894_R34x, 3.4.2 release, Copyright IBM Corp 2000, 2008.
      All rights reserved.

      WinXP/SP3

    Description

      Create a dummy class, e.g.

      class Dummy{
      }

      Compile it with different options:

      
      

      C:\harmonybugs>javac -5 Dummy.java

      C:\harmonybugs>javac -6 Dummy.java
      java.lang.reflect.InvocationTargetException
      at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
      at java.lang.reflect.Method.invoke(Method.java:317)
      at org.apache.harmony.tools.javac.Compiler.main(Compiler.java:60)
      at org.apache.harmony.tools.javac.Main.compile(Main.java:84)
      at org.apache.harmony.tools.javac.Main.compile(Main.java:58)
      at org.apache.harmony.tools.javac.Main.main(Main.java:38)
      Caused by: java.lang.NoClassDefFoundError: javax/annotation/processing/ProcessingEnvironment
      at java.lang.ClassLoader.defineClass0(ClassLoader.java)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:367)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:110)
      at java.net.URLClassLoader.access$3(URLClassLoader.java:1)
      at java.net.URLClassLoader$URLJarHandler.createClass(URLClassLoader.java:440)
      at java.net.URLClassLoader$URLJarHandler.findClass(URLClassLoader.java:371)
      at java.net.URLClassLoader.findClassImpl(URLClassLoader.java:1216)
      at java.net.URLClassLoader$4.run(URLClassLoader.java:901)
      at java.net.URLClassLoader$4.run(URLClassLoader.java:1)
      at java.security.AccessController.doPrivilegedImpl(AccessController.java:171)
      at java.security.AccessController.doPrivileged(AccessController.java:64)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:903)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:489)
      at java.lang.ClassLoader$SystemClassLoader.loadClass(ClassLoader.java:871)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
      at java.lang.VMClassRegistry.initializeClass(VMClassRegistry.java)
      at java.lang.Class.forName(Class.java:147)
      at java.lang.Class.forName(Class.java:90)
      at org.eclipse.jdt.internal.compiler.batch.Main.initializeAnnotationProcessorManager(Main.java:3421)
      at org.eclipse.jdt.internal.compiler.batch.Main.performCompilation(Main.java:3528)
      at org.eclipse.jdt.internal.compiler.batch.Main.compile(Main.java:1645)
      at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
      ... 5 more
      Caused by: java.lang.ClassNotFoundException: javax.annotation.processing.ProcessingEnvironment
      at java.net.URLClassLoader.findClass(URLClassLoader.java:907)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:489)
      at java.lang.ClassLoader$SystemClassLoader.loadClass(ClassLoader.java:871)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
      at java.lang.ClassLoader.defineClass0(ClassLoader.java)
      ... 26 more

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb

            Dates

              Created:
              Updated:

              Slack

                Issue deployment