IBM Support

IZ76352: JAVA THROWS JAVA.LANG.TYPENOTPRESENTEXCEPTION FOR ANNOTATIONS IN A CLASS FILE THAT ARE UNKNOWN DURING RUNTIME

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: java.lang.TypeNotPresentException: Type
    abc.def.ghi  not present
    .
    Stack Trace: java.lang.TypeNotPresentException: Type abc.def.ghi
     not present
    at
    com.ibm.oti.reflect.AnnotationHelper.getAnnotation(AnnotationHel
    per.java:39)
    
    at
    com.ibm.oti.reflect.AnnotationHelper.getDeclaredAnnotations(Anno
    tationHelper.java:51)
    
    at
    com.ibm.oti.reflect.Method.getDeclaredAnnotations(Method.java:35
    )
    at
    java.lang.reflect.Method.getDeclaredAnnotations(Method.java:719)
    
    at
    java.lang.reflect.AccessibleObject.getAnnotations(AccessibleObje
    ct.java:187)
    
    at com.ibm.oti.reflect.Method.getAnnotation(Method.java:21)
    at java.lang.reflect.Method.getAnnotation(Method.java:703)
    ...
    .
    

Local fix

  • This issue can be worked around when we have the classes of the
    unknown annotations on the classpath. This way we make it
    'visible' to the JVM during runtime.
    

Problem summary

  • Java throws java.lang.TypeNotPresentException for annotations in
    a class file that are UNKNOWN during runtime
    

Problem conclusion

  • This defect will be fixed in:
    6.0.0 SR8 FP1
    5.0.0 SR12
    .
    The annotations code area has been fixed handle unknown
    annotations suitably.
    .
    To obtain the fix:
    Install build 20100531 or later
    

Temporary fix

Comments

APAR Information

  • APAR number

    IZ76352

  • Reported component name

    J9 COMMON CODE

  • Reported component ID

    620700127

  • Reported release

    600

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-05-27

  • Closed date

    2010-06-01

  • Last modified date

    2010-06-10

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

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

    IZ76354

Fix information

  • Fixed component name

    J9 COMMON CODE

  • Fixed component ID

    620700127

Applicable component levels

  • R600 PSN

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSCVQ3W","label":"Virtual Machine"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
10 June 2010