JBoss Community

javassist compiling/casting Integers as strings

created by Raj Rajamani in Javassist - View the full discussion

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

Start a new discussion in Javassist at Community