IV23503: THE JVM UNNECESSARILY EXECUTES STATIC INITIALIZER CODE IN AN ANN OTATION CLASS.

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Error Message: A java.lang.ExceptionInInitializerError could be
    received if the unnecessarily static initializer code in an
    Annotation class throws an exception (such as
    java.lang.RuntimeException).
       This issue only applies to Java 601.
    .
    Stack Trace: Exception in thread "main"
    java.lang.ExceptionInInitializerError
               at java.lang.J9VMInternals.initialize
               at java.lang.Class.forNameImpl(Native Method)
               at java.lang.Class.forName
               at com.ibm.oti.reflect.AnnotationParser.parseClass
               at
    com.ibm.oti.reflect.AnnotationParser.parseElementValue
               at
    com.ibm.oti.reflect.AnnotationParser.parseAnnotation
               at
    com.ibm.oti.reflect.AnnotationParser.parseAnnotations
               at java.lang.Class.getDeclaredAnnotations
               at java.lang.Class.getAnnotations
               at A.main
       Caused by: java.lang.RuntimeException
               at ReferencedClass.<clinit>
               at java.lang.J9VMInternals.initializeImpl(Native
    Method)
               at java.lang.J9VMInternals.initialize
                                    ...
    .
    

Local fix

  • This issue can be worked around by preventing the exception from
    the static initializer code in an Annotation class.
    

Problem summary

  • The problem is caused when the JVM unnecessarily executes static
    initializer code in an Annotation class.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.1 SR4
    .
       The JVM has been updated so that the JVM would not
    unnecessarily execute static initializer code in an Annotation
    class.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV23503

  • Reported component name

    J9 COMMON CODE

  • Reported component ID

    620700127

  • Reported release

    260

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-06-22

  • Closed date

    2012-06-22

  • Last modified date

    2012-06-22

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    J9 COMMON CODE

  • Fixed component ID

    620700127

Applicable component levels

  • R260 PSY

       UP



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Runtimes for Java Technology
Virtual Machine

Software version:

260

Reference #:

IV23503

Modified date:

2012-06-22

Translate my page

Machine Translation

Content navigation