IV25851: LINKEDHASHMAP DOESN'T REFLECT CHANGES IN THE ENTRYSET

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: The failing scenario is as follows:
    1) Create a LinkedHashmap containing 10 instances of a
    particular value
    2) use the values() method to retrieve a 'Collection' of the
    values in the table
    3) use the entrySet() method to retrieve a 'Set' of the entries
    in the table
    4) Remove one of the entries from the entrySet
    5) Get an iterator over the values 'Collection' and check that
    it now contains only 9 instances of the value.
    Step 5 fails with the symptom that it now contains 10 instances
    of the value.
    .
    Stack Trace: N/A
    .
    

Local fix

Problem summary

  • The problem is caused when an entry is removed from the entrySet
    of a LinkedHashMap.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.0 SR11
    6.0.1 SR4
    7.0.0 SR3
    .
    The HashMapEntrySet has been updated to use remove instead of
    removeEntry when an entry is removed from the entrySet of a
    LinkedHashMap.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV25851

  • Reported component name

    JAVA CLASS LIBS

  • Reported component ID

    620700130

  • Reported release

    600

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-08-07

  • Closed date

    2012-08-07

  • Last modified date

    2012-08-07

  • 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 CLASS LIBS

  • Fixed component ID

    620700130

Applicable component levels

  • R600 PSY

       UP

  • R700 PSY

       UP



Rate this page:

(0 users)Average rating

Document information


More support for:

Runtimes for Java Technology
Java Class Libraries

Software version:

6.0

Reference #:

IV25851

Modified date:

2012-08-07

Translate my page

Machine Translation

Content navigation