python748 / alternate-java-bridge-library

Automatically exported from code.google.com/p/alternate-java-bridge-library
Apache License 2.0
0 stars 0 forks source link

Convert class has some problems #130

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1.  All methods seem to be listed twice.  For example, if I do "Convert." the 
list comes up and I see every method twice.  They appear to be exactly the same 
from what I can tell...

2.  There seems to be a problem with the Convert.String(some int here); class.  
I am not sure if it is isolated to just that method, or if it is widespread, 
but here is an example.

int tempVar = 4;
TestLabel.Text(Convert.string(tempVar));

The resulting text ends up being....

com.xiledsystems.AlternateJavaBridgelib.components.altbridge.Label@415d57b8

using Integer.toString() works fine.

Original issue reported on code.google.com by bric...@gmail.com on 17 Apr 2013 at 7:39

GoogleCodeExporter commented 8 years ago
Number 1 is not an issue.  My mistake!  please disregard

Original comment by bric...@gmail.com on 17 Apr 2013 at 8:04

GoogleCodeExporter commented 8 years ago
I added checks for Byte, Integer, Short, Long, Float, and Double. If it's one 
of those, it will return how you would expect it to. However, if it's anything 
else, it will just return the result of object.toString(). If the class doesn't 
have that method overriden, then you will get the result above, which I believe 
is the hashcode of the object.

Original comment by IMPINC...@gmail.com on 27 Apr 2013 at 6:16

GoogleCodeExporter commented 8 years ago

Original comment by IMPINC...@gmail.com on 28 Apr 2013 at 8:37

GoogleCodeExporter commented 8 years ago
Can you clarify what you mean for the non byte, Integer, short, Long, Float, 
and Double?  Sorry, I'm just not following.

Original comment by bric...@gmail.com on 29 Apr 2013 at 2:33

GoogleCodeExporter commented 8 years ago

Original comment by IMPINC...@gmail.com on 30 May 2013 at 12:04