src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
changeset 50200 9ce050c4711b
parent 50181 f854b76b6a0c
child 50250 04f9bb270ab8
--- 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);