Skip to main content

IV19837: ENUM.VALUEOF() THROWS NULLPOINTEREXCEPTION INSTEAD OF ILLEGALARG UMENTEXCEPTION FOR NON ENUM CLASSES


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 NullPointerException is thrown instead of an
    IllegalArgumentException when the method Enum.valueOf() is
    called for non-enum type classes
    .
    Stack Trace: N/A
    .
    

Local fix

Problem summary

  • The problem is caused when the method Enum.valueOf() is invoked
    for a class which does not represent the enum type.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.0 SR11
    6.0.1 SR2
    7.0.0 SR1
    .
       The JCL has been updated so that an IllegalArgumentException
    is thrown when Enum.valueOf() is invoked for non-enum type
    classes.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV19837

  • 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

    2012-04-17

  • Closed date

    2012-04-17

  • Last modified date

    2012-04-17

  • 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

  • R600 PSY

       UP

  • 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:
6.0


Reference #:
IV19837


Modified date:
2012-04-17

Translate my page

Content navigation