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
duke@1 | 1 | OverridePosition.java:17: method() in T4524388.Testa cannot implement method() in T4524388.Interface; attempting to assign weaker access privileges; was public |
duke@1 | 2 | void method() {} |
duke@1 | 3 | ^ |
duke@1 | 4 | OverridePosition.java:24: method() in T4524388.A cannot implement method() in T4524388.Interface; attempting to assign weaker access privileges; was public |
duke@1 | 5 | class B extends A implements Interface { |
duke@1 | 6 | ^ |
duke@1 | 7 | 2 errors |