2002 JI Open Discussion Posted September 2, 2006 Share Posted September 2, 2006 By: adi77 - adi77 Cannot Cast from int to Integer 2005-09-06 14:21When using Parameters of type java.lang.Integer, the Compiler ggenerates Code like this case 8 : // 8 { value = (java.lang.Integer)(1); break; } But it should read like this case 8 : // 8 { value = (java.lang.Integer)(new Integer(1)); break; } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now