IBM Support

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

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.1","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
21 February 2022