IBM Support

PM11049: HASHCODE ISSUES WITH WCM API CLASS DOCUMENTLIBRARY AND INTERNAL CLASS LOCALIZEDLIBRARY

 

APAR status

  • Closed as program error.

Error description

  • This defect is to document two errors in the hashcode
    implementations of the WCM API class 'DocumentLibrary' and its
    internal class 'LocalizedLibrary'.
    
    The hashcode error in 'DocumentLibrary' is related to the fact
    that the hashcode isn't recalculated when the 'setName' method
    is called, whereas in the 'LocalizedLibrary' class, the
    hashcode
    is being generated off a StringBuffer instead of a String
    (which
    ends up returning a unique hashcode for equilivant objects)
    

Local fix

Problem summary

  • This defect is to document two errors in the hashcode
    implementations of the WCM API class 'DocumentLibrary' and its
    internal class 'LocalizedLibrary'.
    
    The hashcode error in 'DocumentLibrary' is related to the fact
    that the hashcode isn't recalculated when the 'setName' method
    is called, whereas in the 'LocalizedLibrary' class, the hashcode
    is being generated off a StringBuffer instead of a String (which
    ends up returning a unique hashcode for equilivant objects)
    

Problem conclusion

  • Analysis: As indicated in the problem description
    Solution: The DocumentLibrary.setName method was changed to
    reset the cached hashcode whereas in the LocalizedLibrary class,
    the hashCode method was modified to calculate the hashcode on a
    string (instead of a stringbuffer)
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM11049

  • Reported component name

    LOTUS WEB CONT

  • Reported component ID

    5724I2900

  • Reported release

    61B

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-03-30

  • Closed date

    2010-05-17

  • Last modified date

    2010-05-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

    LOTUS WEB CONT

  • Fixed component ID

    5724I2900

Applicable component levels

  • R61A PSY

       UP

  • R61B PSY

       UP

  • R61C PSY

       UP

  • R615 PSY

       UP

[{"Business Unit":{"code":"BU051","label":"N\/A"},"Product":{"code":"SUPPORT","label":"IBM Web Content Manager"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.1.0.2","Line of Business":{"code":"LOB33","label":"N\/A"}}]

Document Information

Modified date:
21 December 2021