Skip to main content

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


Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

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

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

Runtimes for Java Technology

Virtual Machine


Software version:
260


Reference #:
IV23503


Modified date:
2012-06-22

Translate my page

Content navigation