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).