IBM Support

IJ12097: WRONG RESULT FROM STRING.INDEXOF AND STRING.LASTINDEXOF

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: N/A
    .
    Stack Trace: N/A.
    .
    

Local fix

  • -Xjit:disableUnsafeFastPath or
    -Xjit:{full/signature/of/the/problematic/method}(disableUnsafeFa
    stPath) can be used to work around this issue. The latter one
    has much smaller performance impact.
    

Problem summary

  • The problem is caused by JIT compiled code incorrectly widening
    a byte value loaded from the backing array of a String.
    Comparison using the widened value may unexpectedly fail. The
    wrong widening occurs when String.indexOf and String.lastIndexOf
    are compiled or inlined.
    

Problem conclusion

  • The JIT has been updated to correctly widen the byte value
    loaded from String's backing array.
    .
    This APAR will be fixed in the following Java Releases:
       8    SR5 FP27  (8.0.5.27)
    .
    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

    IJ12097

  • Reported component name

    JIT

  • Reported component ID

    620700124

  • Reported release

    130

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-12-11

  • Closed date

    2018-12-11

  • Last modified date

    2018-12-11

  • 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

    JIT

  • Fixed component ID

    620700124

Applicable component levels

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSC9HBA","label":"Just In Time (JIT) Compiler"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"130","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
11 December 2018