IBM Support

PQ63082: INCONSISTENCY WITH INTERN METHOD OF STRING CLASS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Inconsistency with intern method of the String class.
    if ( (strObj.intern() != "a string literal") && strObj.equals(
    "a string literal") ) {
    //This should never be true
    }
    But the cust. appln sometimes for the above check is returning
    true.
    

Local fix

  • use equals method in the place of intern
    

Problem summary

  • In internString we scan intern string table
    looking for a
    match. If found we return address of intern'd string.
    If no match is found attempt to add a 'bucket' for a new
    intern'd string.  We again scan the intern string table
    looking for a match as another thread may have added an
    entry for an identical string in the window between us
    scanning the table for a match and getting the heap lock.
    If this happens we return the given string and not the
    string from the intern string table.
    But the code to assign the result if string found in the
    rescan of the table was missing
    

Problem conclusion

  • FIXED in ca130-20020716 build
    

Temporary fix

Comments

APAR Information

  • APAR number

    PQ63082

  • Reported component name

    JAVA(1.3) COMMO

  • Reported component ID

    5648C9800

  • Reported release

    130

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2002-07-15

  • Closed date

    2002-07-17

  • Last modified date

    2002-07-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

    JAVA(1.3) COMMO

  • Fixed component ID

    5648C9800

Applicable component levels

  • R130 PSN

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SUPPORT","label":"IBM Worldwide Support"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.3.1","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
09 February 2022