aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarika Sinha2014-03-06 10:44:16 (EST)
committerMike Rennie2014-03-07 12:15:52 (EST)
commit611d0b2c9ead4ce27bd4ce6ea8e9d0b5f4b5b46b (patch)
tree57f7826a7d9f6e4340025baac68d1dcf0b2b133f
parentbfaf8b10ce651f5ef85de0696b497a91431cff06 (diff)
downloadeclipse.jdt.debug-611d0b2c9ead4ce27bd4ce6ea8e9d0b5f4b5b46b.zip
eclipse.jdt.debug-611d0b2c9ead4ce27bd4ce6ea8e9d0b5f4b5b46b.tar.gz
eclipse.jdt.debug-611d0b2c9ead4ce27bd4ce6ea8e9d0b5f4b5b46b.tar.bz2
Bug 427082 - [1.8] Hover does not show variable's value while debugging
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());
}
}