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
mcimadamore@122 | 1 | T6304921.java:671/671/680: warning: [raw-type] found raw type: java.util.ArrayList |
mcimadamore@122 | 2 | missing type parameters for generic class java.util.ArrayList<E> |
mcimadamore@122 | 3 | List<Integer> list = new ArrayList(); |
mcimadamore@122 | 4 | ^ |
ksrini@16 | 5 | T6304921.java:667/667/682: warning: [unchecked] unchecked conversion |
duke@1 | 6 | found : java.util.ArrayList |
duke@1 | 7 | required: java.util.List<java.lang.Integer> |
duke@1 | 8 | List<Integer> list = new ArrayList(); |
duke@1 | 9 | ^ |
ksrini@16 | 10 | T6304921.java:445/445/453: warning: [fallthrough] possible fall-through into case |
duke@1 | 11 | default: |
duke@1 | 12 | ^ |
ksrini@16 | 13 | T6304921.java:522/613/614: warning: [finally] finally clause cannot complete normally |
duke@1 | 14 | } |
duke@1 | 15 | ^ |
ksrini@16 | 16 | T6304921.java:727/733/737: cannot find symbol |
duke@1 | 17 | symbol : variable orr |
duke@1 | 18 | location: class java.lang.System |
duke@1 | 19 | System.orr.println("abc"); // name not found |
duke@1 | 20 | ^ |
ksrini@16 | 21 | T6304921.java:812/816/822: operator + cannot be applied to int,boolean |
duke@1 | 22 | return 123 + true; // bad binary expression |
duke@1 | 23 | ^ |
duke@1 | 24 | 2 errors |
mcimadamore@122 | 25 | 4 warnings |