[jboss-user] [Javassist] - javassist compiling/casting Integers as strings

Raj Rajamani do-not-reply at jboss.com
Thu Jul 25 18:20:01 EDT 2013


Raj Rajamani [https://community.jboss.org/people/rrajamani] created the discussion

"javassist compiling/casting Integers as strings"

To view the discussion, visit: https://community.jboss.org/message/829860#829860

--------------------------------------------------------------
Hi,
I"m a new javassist user and noticed that the following code is resulting in a value of 1599 instead of 114.  Makes me think that the integers are getting cast as Strings.  How can I overcome this issue?

| public LeadRecord eval(void) {Integer dsi = new Integer(15); Integer bsi = new Integer(99); Integer nsi = dsi + bsi;System.out.println(nsi); | } |
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/829860#829860]

Start a new discussion in Javassist at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2062]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130725/9314e627/attachment-0001.html 


More information about the jboss-user mailing list