Closed Bug 507699 Opened 16 years ago Closed 7 years ago

Dictionary key of Xml type are not matching

Categories

(Tamarin Graveyard :: Virtual Machine, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX
Future

People

(Reporter: dschaffe, Unassigned)

References

Details

Using XML as a Dictionary key does not match when two keys have == equality It seems reasonable if two variables succeed with == equality should work as a key. bug.as: import flash.utils.Dictionary; var d:Dictionary=new Dictionary(); var x:XML=<root><child><value/></child></root>; var c1:XML=x.child[0]; var c2:XML=x.child[0]; print print("c1:"+c1); print("c2:"+c2); print("c1==c2:"+c1==c2); d[c1]=1; print("d[c1]:"+d[c1]); print("d[c2]:"+d[c2]); output: c1:<child> <value/> </child> c2:<child> <value/> </child> false d[c1]:1 d[c2]:undefined expected: since c1==c2 and d[c2]==1, d[c2] should == 1 also print(d[c2]); -> undefined from jira community bug: http://bugs.adobe.com/jira/browse/FP-587
Flags: flashplayer-triage+
Flags: flashplayer-qrb?
Target Milestone: --- → Future
Flags: flashplayer-qrb? → flashplayer-qrb+
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.