--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java Mon May 21 15:15:58 2018 -0400
+++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java Mon May 21 12:27:21 2018 -0700
@@ -2668,8 +2668,12 @@
ListBuffer<Type> components = new ListBuffer<>();
for (Type bound : ict.getExplicitComponents()) {
if (explicitParamTypes != null) {
- bound = infer.instantiateFunctionalInterface(that,
- bound, explicitParamTypes, resultInfo.checkContext);
+ try {
+ bound = infer.instantiateFunctionalInterface(that,
+ bound, explicitParamTypes, resultInfo.checkContext);
+ } catch (FunctionDescriptorLookupError t) {
+ // do nothing
+ }
}
bound = types.removeWildcards(bound);
components.add(bound);