IBM Support

IV76884: OVERLY RESTRICTED METHODHANDLE RETURNED FROMMETHODHANDLES$LOOKUP.UNREFLECT(), METHODHANDLES$LOOKUP.FINDSPECIAL() AND METHODHANDL

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: Methods
    java/lang/invoke/MethodHandles$Lookup.unreflect(),
    java/lang/invoke/MethodHandles$Lookup.findSpecial() and
    java/lang/invoke/MethodHandles$Lookup.findVirtual() return an
    overly restricted MethodHandle when the protected (non-static)
    method is defined in a different runtime package from the
    accessing class, and the accessing class is NOT a subclass of
    the defining class.
    .
    Stack Trace: N/A
    .
    

Local fix

Problem summary

  • In the scenario described above, the receiver argument that was
    being returned in the MethodHandle, was being incorrectly
    narrowed down to the accessing class.
    

Problem conclusion

  • The JVM has been changed such that, in the above condition, the
    receiver argument that is returned in the MethodHandle will be
    narrowed down to the accessing class, only when the accessing
    class is a subclass of the class where the protected method is
    defined.
    .
    This APAR will be fixed in the following Java Releases:
       8    SR2       (8.0.2.0)
       7 R1 SR3 FP40  (7.1.3.40)
    .
    Contact your IBM Product's Service Team for these Service
    Refreshes and Fix Packs.
    For those running stand-alone, information about the available
    Service Refreshes and Fix Packs can be found at:
               https://www.ibm.com/developerworks/java/jdk/
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV76884

  • Reported component name

    J9 COMMON CODE

  • Reported component ID

    620700127

  • Reported release

    270

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2015-09-10

  • Closed date

    2015-09-10

  • Last modified date

    2016-03-24

  • 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

  • R270 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":"7.0","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
21 February 2022