IBM Support

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

Subscribe

You can track all active APARs for this component.

 

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

[{"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:
17 April 2012