IBM Support

IV51263: SUN.REFLECT.REFLECTION.GETCALLERCLASS(INT DEPTH) METHOD NOW THRO WS UNSUPPORTEDOPERATIONEXCEPTION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: UnsupportedOperationException
    .
    Stack Trace: java.lang.UnsupportedOperationException: This
    method is in the sun.* namespace so it is not a supported,
    public interface.
     at sun.reflect.Reflection.getCallerClass
    .
    

Local fix

  • Calls to sun.reflect.Reflection.getCallerClass(int depth) can be
    enabled by using the command line option
    -Djdk.reflect.allowGetCallerClass=true
    

Problem summary

  • An UnsupportedOperationException is now thrown when the
    sun.reflect.Reflection.getCallerClass(int depth) method  is
    called, unless a command line option is used to revert to the
    original behavior.
    

Problem conclusion

  • This defect will be fixed in:
    7.0.0 SR6
    6.0.1 SR7
    .
    The sun.reflect.Reflection.getCallerClass(int depth) method is
    disabled, and a command line option is provided to revert to the
    original behavior.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV51263

  • 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

    2013-10-24

  • Closed date

    2013-10-24

  • Last modified date

    2013-10-25

  • 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