Map class can't handle keys with value "remove" , "get", "clear" ...

1 view
Skip to first unread message

Cristian Calugar

unread,
Apr 29, 2011, 5:09:24 AM4/29/11
to springactio...@googlegroups.com

Hello,

 

We are using Spring Actionscript library in our application and noticed that we have problem when adding keys to a map with values “remove”, “get”, “clear” ,… (actually names of the Map class methods).

Usually this should not happen. It should not matter what value have the keys.

 

I think the problem is that Map class extends Dictionary. It should only contain a Dictionary object. Like this you will avoid the following syntax (this[key]):

 

  public function get(key:Object):* {

     return this[key];

   }

 

 public function put(key:Object, value:Object):void {
     this[key] = value;
   }

 

Please let us know if you would like to fix this problem and when it will be available. Thank you.

 

Best regards,

Cristi.

---

Cristian Calugar

Software Developer

Reply all
Reply to author
Forward
0 new messages