-
Bug
-
Resolution: Unresolved
-
P4
-
5.0, 7, 8
The definition of "provably distinct" type arguments does not account for intersection types. For example, if X extends Foo & Bar, is C<X> provably distinct from C<Bar>?
There is also some vagueness about what it means to perform "capture conversion, if necessary", and confusion about what the supertypes of a wildcard-parameterized type are (see 5.5.1).
(For context, the only meaningful impact of the "provably distinct" definition is in deciding which casts are allowed.)
There is also some vagueness about what it means to perform "capture conversion, if necessary", and confusion about what the supertypes of a wildcard-parameterized type are (see 5.5.1).
(For context, the only meaningful impact of the "provably distinct" definition is in deciding which casts are allowed.)
- relates to
-
JDK-8016196 Inference: define supertype parameterization for wildcard-parameterized types
- Open
-
JDK-8078084 4.5.1: Refine provable distinctness definition
- Open