aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarika Sinha2014-03-06 10:44:16 (EST)
committerMike Rennie2014-03-06 10:44:16 (EST)
commit9193a7f1df5af2599134a1330048da2cc75a3f93 (patch)
treed7386accbe7f364798868bc8c33304e1af8ff1f8
parentef4034a07304a2887436cf1396cc989384c23b6f (diff)
downloadeclipse.jdt.debug-9193a7f1df5af2599134a1330048da2cc75a3f93.zip
eclipse.jdt.debug-9193a7f1df5af2599134a1330048da2cc75a3f93.tar.gz
eclipse.jdt.debug-9193a7f1df5af2599134a1330048da2cc75a3f93.tar.bz2
Bug 427082 - [1.8] Hover does not show variable's value while debuggingP20140306-1600
in lambda expression Change-Id: Ibec0605931dbf6f27f5f2f67953ead4c692c0e4f Signed-off-by: Sarika Sinha <sarika.sinha@in.ibm.com>
-rw-r--r--org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaDebugHover.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaDebugHover.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaDebugHover.java
index 3ae987f..2a90b80 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaDebugHover.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaDebugHover.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2011 IBM Corporation and others.
+ * Copyright (c) 2000, 2014 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -389,7 +389,8 @@ public class JavaDebugHover implements IJavaEditorTextHover, ITextHoverExtension
equal = true;
}
}
- if (equal) {
+ // find variable if equal or method is a Lambda Method
+ if (equal || method.isLambdaMethod()) {
return findLocalVariable(frame, var.getElementName());
}
}