Thu, 23 Oct 2008 17:59:43 +0100
6711619: javac doesn't allow access to protected members in intersection types
Summary: Accordingly to new accessibility rules all members of intersection types (but private ones) should be accessible
Reviewed-by: jjg
1 T6304921.java:671/671/680: warning: [raw-type] found raw type: java.util.ArrayList
2 missing type parameters for generic class java.util.ArrayList<E>
3 List<Integer> list = new ArrayList();
4 ^
5 T6304921.java:667/667/682: warning: [unchecked] unchecked conversion
6 found : java.util.ArrayList
7 required: java.util.List<java.lang.Integer>
8 List<Integer> list = new ArrayList();
9 ^
10 T6304921.java:445/445/453: warning: [fallthrough] possible fall-through into case
11 default:
12 ^
13 T6304921.java:522/613/614: warning: [finally] finally clause cannot complete normally
14 }
15 ^
16 T6304921.java:727/733/737: cannot find symbol
17 symbol : variable orr
18 location: class java.lang.System
19 System.orr.println("abc"); // name not found
20 ^
21 T6304921.java:812/816/822: operator + cannot be applied to int,boolean
22 return 123 + true; // bad binary expression
23 ^
24 2 errors
25 4 warnings