Community
Participate
Working Groups
3.3m5 Following code should print "SUCCESS" after compiled, when unused locals are not preserved. Basically, the unboxing conversion on message send return value (even if unused) should still be generated. class A<T> { public T foo() { return null; } } public class X { public static void main(String[] args) { A<Long> a = new A<Long>(); A ua = a; try { long s = a.foo(); } catch(NullPointerException e) { System.out.println("SUCCESS"); return; } System.out.println("FAILED"); } }
Added AutoboxingTest#test135. Patch appended into macro-patch in bug 177194
Added AutoboxingTest#test136-test146.
Released for 3.3M6 Backporting to 3.2 maintenance stream
fixed
Verified for 3.3 M6 using build I20070320-0010