CDV ❯ subclasses of logical collections incorrectly delegate methods
-
Bug
-
Status: Resolved
-
2 Major
-
Resolution: Won't Fix
-
Byte Code Transform
-
-
teck
-
Reporter: teck
-
August 05, 2008
-
0
-
Watchers: 0
-
September 06, 2013
-
September 06, 2013
Attachments
Description
source: http://forums.terracotta.org/forums/posts/list/0/1301.page
For logical collections that use identity equal only (eg. LinkedBlockingQueue), the generated delegate method for equals() produces an incorrect result
Attached is a sample program and tc-config.xml. In the instrumented version of the class bugs.Tests$Buggy, the equals() method is delegated and thus fails the object reference comparison.
If you have time to do this, or think it could be a good learning exercise for someone please do it in 2.7