Community
Participate
Working Groups
Eclipse V3.1.0 Build I20050627-1435 Problem: compile error with the following code public class Test { public static void main(String[] args) { Short s; s = 5; // Type mismatch: cannot convert from int to Short } } Works fine with javac (JDK 1.5.0_02).
Same type mismatch problem with array initializers: Short[] shortArray = { 7 }; // Type mismatch Short[] shortArray = new Short[] { 7 }; // Type mismatch Both statements work fine with javac (JDK 1.5.0._02)
Indeed, we were only tolerating these in variable declarations. Fixed. Added AutoboxingTest#test112-113
Verified in I20050920-0010 for 3.2M2
Verified using M20050923-1430 for 3.1.1