You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I spent this morning using the new version, and I'm afraid this is not the good solution because now we have to cast all long java objects to integer (intValue()) to use them in javascript, it's a long and dangerous task =>
java.newInstanceSync('java.lang.Long', 1) +1 => '11'
and at the end I had to uncomment your patch !!
I think it's very important to convert transparantly Long to Number, but then how to find the rigth method from JS to java when the last is using long parameters ?
Can't we image to explicitly cast, with something like Number#toLong() ?
Regards.
OK, I think I came up with a better solution. I've published v0.2.1 with the fix. I've also updated the readme with an example and description of how to handle longs.
Activity
joeferner commentedon Jan 31, 2013
Just published a new version (v0.2.0) which keeps longs and long objects.
ebasley commentedon Feb 1, 2013
Thank you,
but when using v 0.2.0 with a Long as parameter, we have this message: "javaToV8: unhandled type: 0x003"
ebasley commentedon Feb 1, 2013
I spent this morning using the new version, and I'm afraid this is not the good solution because now we have to cast all long java objects to integer (intValue()) to use them in javascript, it's a long and dangerous task =>
java.newInstanceSync('java.lang.Long', 1) +1 => '11'
and at the end I had to uncomment your patch !!
I think it's very important to convert transparantly Long to Number, but then how to find the rigth method from JS to java when the last is using long parameters ?
Can't we image to explicitly cast, with something like Number#toLong() ?
Regards.
joeferner commentedon Feb 1, 2013
OK, I think I came up with a better solution. I've published v0.2.1 with the fix. I've also updated the readme with an example and description of how to handle longs.