Closed GoogleCodeExporter closed 8 years ago
Ah, sh#!** - GWT doesn't do autoboxing, so changing the return type from "int"
to
"Integer" causes the method to fail for all proper integer values with
"IllegalArgumentException: Something other than a Java object was returned from
JSNI
method"
Maybe keep the return type "int" and return -1 if jsObj.characterValue is
undefined?
Original comment by Hartmut....@gmail.com
on 27 Feb 2009 at 4:08
Here's a patch that fixes this. I've changed the return type from int to
Integer, and
I call your helper function JSOHelper.toInteger() to box the character value.
If the
value is undefined, the function returns null
Original comment by Hartmut....@gmail.com
on 4 Mar 2009 at 3:52
Attachments:
Original comment by sanjiv.j...@gmail.com
on 4 Mar 2009 at 4:18
Fixed in SVN, thanks.
Original comment by sanjiv.j...@gmail.com
on 9 Mar 2009 at 1:03
Original issue reported on code.google.com by
Hartmut....@gmail.com
on 27 Feb 2009 at 3:54