-
Bug
-
Resolution: Fixed
-
P4
-
7
-
b40
-
generic
-
generic
-
Not verified
there are several tck tests regarding this issue:
allows access to protected members:
JCK-compiler-7/tests/lang/TYPE/type154/type15406/type15406.html
forbits access to package private members:
JCK-compiler-7/tests/lang/CONV/conv148/conv148.html
There's also another related problem:
class X<E extends X<E>> {
private static int i;
int f() {
return E.i;
}
}
'i' shouldn't be accessible from E since is private (and type variable should not inherit private members).
- relates to
-
JDK-6776289 Regression: javac7 doesnt resolve method calls properly
- Closed
-
JDK-6558551 Type variables incorrectly inherits private members
- Closed
-
JDK-6644562 4.9: Simplify membership of single-bound intersection types
- Open
-
JDK-8318160 javac does not reject private method reference with type-variable receiver
- Resolved
-
JDK-6531090 Cannot access methods/fields of a captured type belonging to an intersection type
- Closed
-
JDK-6904536 Generics support broken in Java 7-b40
- Closed
-
JDK-6946211 Multiple generic types cause weaker access privileges error on clone()
- Closed
-
JDK-6246814 Private member of type variable wrongly accesible
- Closed