Community
Participate
Working Groups
Using latest, compiling the following example reports an unnecessary cast that is indeed required, otherwise it is a compile error. public class X { private static void checkConversions(byte _byte) { Short s = (short) _byte; // cast reported as unnecessary } public static void main(String args[]) { byte _byte = 2; checkConversions(_byte); System.out.println("OK"); } } This might be related to bug 83965.
Tuned unnecessary cast reporting to handle this situation. Added AutoboxingTest#test086 Fixed
Verified in I20050214