IBM Support

IJ49911: STRING COMPARISON FAILURES CAUSED BY STRING COMPRESSION

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: Various error messages may be produced, depending
    on which particular operation failed
    .
    Stack Trace: An example stack trace is a NoSuchMethodException
    thrown after a call to java.lang.Class.getDeclaredMethod(),
    caused by an underlying String comparison failure which in this
    case prevents a method from being found by its name:
    Exception in thread "main" java.lang.NoSuchMethodException:
    Test.getä()
        at
    java.base/java.lang.Class.newNoSuchMethodException(Class.java:64
    9)
        at
    java.base/java.lang.Class.throwExceptionOrReturnNull(Class.java:
    1447)
        at
    java.base/java.lang.Class.getMethodHelper(Class.java:1533)
        at
    java.base/java.lang.Class.getDeclaredMethod(Class.java:1121)
        ...
    .
    

Local fix

  • Disable String comparison with this command line option:
        -XX:-CompactStrings
    

Problem summary

  • The problem is caused by a mishandling of compressed String
    Unicode data in the OpenJ9 JVM. String compression was first
    enabled by default for JDK 11 and later in OpenJ9 0.41.0, so
    issues may manifest for the first time when running on Semeru
    11.0.21.0, 17.0.9.0, and 21.0.1.0.
    The problem may also manifest with IBM Java 8 and Semeru 8 if
    String compression has been explicitly enabled using the
    -XX:+CompactStrings command line option.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    IJ49911

  • 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

    2024-01-31

  • Closed date

    2024-01-31

  • Last modified date

    2024-04-20

  • 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

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"270","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Document Information

Modified date:
21 April 2024