Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2016-05-24 11:42:16 +0000
committerSasikanth Bharadwaj2017-04-12 10:49:56 +0000
commit30b8634488c2a308787d6f4bc05e881c37e80405 (patch)
tree87b8eeb77d97cf76b43a12dfcc1e7265ec921695 /org.eclipse.jdt.core
parent8e7f77d85abf81407daed23fef4b3a32a6ec4955 (diff)
downloadeclipse.jdt.core-30b8634488c2a308787d6f4bc05e881c37e80405.tar.gz
eclipse.jdt.core-30b8634488c2a308787d6f4bc05e881c37e80405.tar.xz
eclipse.jdt.core-30b8634488c2a308787d6f4bc05e881c37e80405.zip
org.eclipse.jdt.internal.compiler.ast.LambdaExpression$CopyFailureException Change-Id: I7bc73c15ae3754f3c32d1d4ae3faf59ad063ba53
Diffstat (limited to 'org.eclipse.jdt.core')
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/LambdaExpression.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/LambdaExpression.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/LambdaExpression.java
index 2c4620c0b5..63e2c2ca84 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/LambdaExpression.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/LambdaExpression.java
@@ -944,7 +944,14 @@ public class LambdaExpression extends FunctionalExpression implements IPolyExpre
if (r1.isCompatibleWith(r2, skope))
return true;
- LambdaExpression copy = cachedResolvedCopy(s, true /* any resolved copy is good */, false, null); // we expect a cached copy - otherwise control won't reach here.
+ LambdaExpression copy;
+ try {
+ copy = cachedResolvedCopy(s, true /* any resolved copy is good */, false, null); // we expect a cached copy - otherwise control won't reach here.
+ } catch (CopyFailureException cfe) {
+ if (this.assistNode)
+ return false;
+ throw cfe;
+ }
Expression [] returnExpressions = copy.resultExpressions;
int returnExpressionsLength = returnExpressions == null ? 0 : returnExpressions.length;
if (returnExpressionsLength > 0) {

Back to the top