Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-1198

JBCACHE-1412 - Marshaller uses equals() to test object equality instead of identity when performing reference counting

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 4.2.0.GA_CP05, 4.3.0.GA_CP03
    • 4.2.0.GA, 4.2.0.GA_CP01 , 4.3.0.GA, 4.2.0.GA_CP02, 4.3.0.GA_CP01, 4.2.0.GA_CP03, 4.2.0.GA_CP04, 4.3.0.GA_CP02
    • Clustering, System
    • None
    • Release Notes

    Description

      The marshalling logic in TreeCacheMarshaller140 uses a HashMap as store of objects already written so it can replace subsequent writes of the same object with a magic number. Use of a HashMap is incorrect, as magic number replacement should only occur if an object with the same identity is detected, not one that just satisfies equals() but not ==.

      See JBCACHE-1412.

      Attachments

        Issue Links

          Activity

            People

              bstansbe@redhat.com Brian Stansberry
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: