Re: Possible bug in gwt with type casting or normal behavior!

2010-01-08 Thread Chris Ramsdale
I would try recompiling in "pretty" mode to see what js is produced. I know the following works correctly for me (I used a TextBox to get around compiler optimizations): public void onModuleLoad() { RootPanel.get().add(textBox); RootPanel.get().add(button); hash = new HashMap();

Possible bug in gwt with type casting or normal behavior!

2010-01-08 Thread mariyan nenchev
Hi, I thing there is possible bug when type casting. Take a look and tell me is this the normal behavior. So if you have HashMap hash = getHashMap(); hash.get((int) myPrimitiveLongValue) will return null even there is value for that key. If you try Integer i = (int) myPrimitiveLongValue; hash.ge