Community
Participate
Working Groups
Compiling this code should lead to an error about incompatible types, but we crash with an internal compiler error. public class X { public static void main(String argv[]) { String[] tab1 = new String[0]; Integer[] tab2 = new Integer[0]; boolean cond = true; Integer[] var = cond ? tab1 : tab2; System.out.println(var); } }
Least containing invocation should have answered the type when no alternate invocation is present. Added GenericTypeTest#test499. Fixed
Verified in I20050215-0800