aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarika Sinha2014-03-12 12:07:40 (EDT)
committerMike Rennie2014-03-12 12:22:50 (EDT)
commitb4b3ce325ce7e2aa63cb0542700a7e1d00663f30 (patch)
treef089262adabca3a95123b32ae18d510df0a2931b
parent611d0b2c9ead4ce27bd4ce6ea8e9d0b5f4b5b46b (diff)
downloadeclipse.jdt.debug-b4b3ce325ce7e2aa63cb0542700a7e1d00663f30.zip
eclipse.jdt.debug-b4b3ce325ce7e2aa63cb0542700a7e1d00663f30.tar.gz
eclipse.jdt.debug-b4b3ce325ce7e2aa63cb0542700a7e1d00663f30.tar.bz2
Bug 428862 - [1.8] Unable to install breakpoint
Change-Id: Ie1da9294ad606d241e299b6feb3eb1d547b8f7e9 Signed-off-by: Sarika Sinha <sarika.sinha@in.ibm.com>
-rw-r--r--org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaLineBreakpoint.java3
1 files changed, 2 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 9b733dd..c5b8f5d 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
@@ -48,6 +48,7 @@ import org.eclipse.jdt.internal.debug.core.model.JDIThread;
import com.ibm.icu.text.MessageFormat;
import com.sun.jdi.AbsentInformationException;
import com.sun.jdi.ClassNotPreparedException;
+import com.sun.jdi.InterfaceType;
import com.sun.jdi.Location;
import com.sun.jdi.NativeMethodException;
import com.sun.jdi.ObjectReference;
@@ -350,7 +351,7 @@ 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) {
+ if (((type.modifiers() & (AccessibleImpl.MODIFIER_ACC_SYNTHETIC | AccessibleImpl.MODIFIER_SYNTHETIC)) != 0)||(type instanceof InterfaceType)) {
return null;
}