aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesper Moller2014-01-23 08:06:52 (EST)
committerMike Rennie2014-03-07 12:12:03 (EST)
commit97d71573f0789fbe23d6dc5d73b90f3b95086714 (patch)
tree2f370b1a206bc53f6d07ab9e33f86179abb15265
parente4f143dfb17f1ea8372a2129821a2ef202cd28e9 (diff)
downloadeclipse.jdt.debug-97d71573f0789fbe23d6dc5d73b90f3b95086714.zip
eclipse.jdt.debug-97d71573f0789fbe23d6dc5d73b90f3b95086714.tar.gz
eclipse.jdt.debug-97d71573f0789fbe23d6dc5d73b90f3b95086714.tar.bz2
Bug 422016 - [1.8] Having reference expressions or lambdas in file
triggers warning for missing line numbers Change-Id: Idd3bb0b1f41ec27ac2a2c2d68049a5c70765581c Signed-off-by: Jesper Moller <jesper@selskabet.org>
-rw-r--r--org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaLineBreakpoint.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaLineBreakpoint.java b/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaLineBreakpoint.java
index 41c56fb..6f287d5 100644
--- a/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaLineBreakpoint.java
+++ b/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaLineBreakpoint.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2012 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
@@ -8,6 +8,7 @@
* Contributors:
* IBM Corporation - initial API and implementation
* Igor Fedorenko - Bug 368212 - JavaLineBreakpoint.computeJavaProject does not let ISourceLocator evaluate the stackFrame
+ * Jesper Møller - Bug 422016 - [1.8] Having reference expressions or lambdas in file triggers warning for missing line numbers
*******************************************************************************/
package org.eclipse.jdt.internal.debug.core.breakpoints;
@@ -31,6 +32,7 @@ import org.eclipse.debug.core.IStatusHandler;
import org.eclipse.debug.core.model.IBreakpoint;
import org.eclipse.debug.core.model.IDebugTarget;
import org.eclipse.debug.core.model.IValue;
+import org.eclipse.jdi.internal.AccessibleImpl;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.debug.core.IJavaLineBreakpoint;
import org.eclipse.jdt.debug.core.IJavaStackFrame;
@@ -348,6 +350,10 @@ public class JavaLineBreakpoint extends JavaBreakpoint implements
try {
locations = type.locationsOfLine(lineNumber);
} catch (AbsentInformationException aie) {
+ if ((type.modifiers() & (AccessibleImpl.MODIFIER_ACC_SYNTHETIC | AccessibleImpl.MODIFIER_SYNTHETIC)) != 0) {
+ return null;
+ }
+
IStatus status = new Status(
IStatus.ERROR,
JDIDebugPlugin.getUniqueIdentifier(),