JDK-8051402 : javac, type containment should accept that CAP <= ? extends CAP and CAP <= ? super CAP
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 8u40
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-07-19
  • Updated: 2015-01-21
  • Resolved: 2014-07-21
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
This will imply a simple fix to Types.containsType. Currently javac is not accepting these containment checks
To help clarify the status of related issues: this bug is a workaround in 8u; please see JDK-8039214 for all related issues in 9+.

This patch provides a limited fix for JDK-8033718 and JDK-8039214 in the 8u repos. It does not solve the problem in full generality, but is enough to make common use cases behave correctly. The intent is for 9 to get a more general solution (with some accompanying source incompatibilities).