PDA

View Full Version : [FIXED] AppEvent(int, Data) ambiguous with AppEvent(int, String) when Data is String



darrellmeyer
3 Jun 2008, 7:07 AM
I mistakenly deleted this post from andrey (http://extjs.com/forum/member.php?u=36474).


This problem was introduced with beta4:

When you declare AppEvent as follows:
new AppEvent<String>(AppEvents.Init, "foo")
you get a compiler error that this is ambiguous with the new AppEvent(int, String) constructor (this second ctor takes a history token as the second param). This forces me to create an intermediary class to wrap the String as a work-around.

Thx,
AndreThe AppEvent(int type, String token) has been removed from AppEvent. Fix is in SVN.