JDK-8033709 : 4.5.1: Provable distinctness of intersection types
  • Type: Bug
  • Component: specification
  • Sub-Component: language
  • Affected Version: 5.0,7,8
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2014-02-05
  • Updated: 2015-12-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbd_majorUnresolved
Related Reports
Relates :  
Relates :  
Description
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.)