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

IllegalAccessError for com.sun.tools.javac.jvm.ClassReader$AnnotationDefaultCompleter in javac

XMLWordPrintable

    • x86
    • linux

      FULL PRODUCT VERSION :
      java version "1.6.0.04"
      Java(TM) SE Runtime Environment (build 1.6.0.04-jinteg_28_apr_2009_04_46-b00)
      Java HotSpot(TM) Server VM (build 11.3-b02-jre1.6.0.04-rc2, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      HP-UX u30907 B.11.23 U ia64 0286262646 unlimited-user license
      (its a sun java installation on HPUX)

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      ANT_HOME=/opt/ant-1.7.0
      BEA_HOME=/opt/wls-10.3.0
      JAVA_HOME=/opt/java1.6.0.04
      (its a sun java installation on HPUX)

      A DESCRIPTION OF THE PROBLEM :
      We are compile our applikation, and get this message
      (its only what I think is the intresting)
       [javac] /proj/zi/vobs/main/sys/src/subsystems/base/main/java/se/rsv/zi/util/sign/ZiSignatureNonce.java
          [javac] /proj/zi/vobs/main/sys/src/subsystems/base/main/java/se/rsv/zi/ws/ZiWebServiceContext.java
       [antbatch] An exception has occurred in the compiler (1.6.0.04). 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.
       [antbatch] java.lang.IllegalAccessError: tried to access class com.sun.tools.javac.jvm.ClassReader$AnnotationDefaultCompleter from class com.sun.tools.javac.jvm.ClassReader
       [antbatch] at com.sun.tools.javac.jvm.ClassReader.attachAnnotationDefault(ClassReader.java:1128)
       [antbatch] at com.sun.tools.javac.jvm.ClassReader.readMemberAttr(ClassReader.java:906)
       [antbatch] at com.sun.tools.javac.jvm.ClassReader.readMemberAttrs(ClassReader.java:1027)
       [antbatch] at com.sun.tools.javac.jvm.ClassReader.readMethod(ClassReader.java:1490)
       [antbatch] at com.sun.tools.javac.jvm.ClassReader.readClass(ClassReader.java:1586)
      ..

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Sorry - I don't think you can.

      Its about 20 directories and a lot of java classes.
      The java classes have circular dependences.
      And there i one build.xml file

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      BUILD SUCCESSFUL

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      Compile again - then we get BUILD SUCCESSFUL

      I think that we reach some maximum limit of something.
      Do you have any proposal ??

        To ant can we send some instructur like
      increase maxPermSize
      ANT_OPTS="-XX:MaxPermSize=128m"

      or another example
      <java classname="weblogic.jspc" classpath="${war.jsp.classpath}"
      fork="true" failonerror="true" maxmemory="512M" >

            Unassigned Unassigned
            igor Igor Nekrestyanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: