[Javassist] - javassist compiling/casting Integers as strings

Raj Rajamani <[email protected]>
Newsgroups gmane.comp.java.jboss.user
Message-ID <[email protected]>
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]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.