Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Schill2015-02-09 16:57:14 +0000
committerMike Rennie2015-02-09 16:57:14 +0000
commitc6b937bdfa1be5199c3444d38a5ba9931974b76a (patch)
treed8eb1db88ae5aa42fc6705449586926549f7f038
parent14d2bc2d62415029203486fd478ba94ba4067dfc (diff)
downloadeclipse.jdt.debug-c6b937bdfa1be5199c3444d38a5ba9931974b76a.tar.gz
eclipse.jdt.debug-c6b937bdfa1be5199c3444d38a5ba9931974b76a.tar.xz
eclipse.jdt.debug-c6b937bdfa1be5199c3444d38a5ba9931974b76a.zip
Bug 455199 - [debug] Debugging doesn't work properly when inner classes
are used Change-Id: I30b3d6872516f34cdd21384f13e483be732fd166 Signed-off-by: Holger Schill <Holger.Schill@itemis.de>
-rw-r--r--org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/BinaryBasedSourceGenerator.java15
1 files changed, 9 insertions, 6 deletions
diff --git a/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/BinaryBasedSourceGenerator.java b/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/BinaryBasedSourceGenerator.java
index 7d9199719..d5ebb2633 100644
--- a/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/BinaryBasedSourceGenerator.java
+++ b/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/BinaryBasedSourceGenerator.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2011 IBM Corporation and others.
+ * Copyright (c) 2000, 2015 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
@@ -7,6 +7,7 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
+ * Holger Schill - Bug 455199 - [debug] Debugging doesn't work properly when inner classes are used
*******************************************************************************/
package org.eclipse.jdt.internal.debug.eval.ast.engine;
@@ -119,7 +120,9 @@ public class BinaryBasedSourceGenerator {
source.append(' ');
source.append(fLocalVariableNames[i]);
if (i + 1 < length)
+ {
source.append(", "); //$NON-NLS-1$
+ }
}
source.append(") throws Throwable {"); //$NON-NLS-1$
source.append('\n');
@@ -297,15 +300,15 @@ public class BinaryBasedSourceGenerator {
} else if (referenceType instanceof InterfaceType) {
if (buffer != null) {
source.append("abstract class "); //$NON-NLS-1$
- source.append(getSimpleName(typeName)).append(
- "___ implements "); //$NON-NLS-1$
+ source.append(getSimpleName(typeName)).append("___ implements "); //$NON-NLS-1$
source.append(typeName.replace('$', '.')).append(" {\n"); //$NON-NLS-1$
fCodeSnippetPosition += source.length();
source.append(buffer).append("}\n"); //$NON-NLS-1$
+ return source;
+ }
+ source.append("interface "); //$NON-NLS-1$
+ source.append(getSimpleName(typeName));
}
-
- return source;
- }
}
source.append(" {\n"); //$NON-NLS-1$

Back to the top