Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2004-06-22 15:42:02 +0000
committerDarin Wright2004-06-22 15:42:02 +0000
commitb11619e4506ad579410f79b7f547daaf753f1dec (patch)
tree2914fea627529a739b1ca786751db855f40179e9
parent499a5c36abe6a886151845db20aa2c9fbdd94008 (diff)
downloadeclipse.jdt.debug-b11619e4506ad579410f79b7f547daaf753f1dec.tar.gz
eclipse.jdt.debug-b11619e4506ad579410f79b7f547daaf753f1dec.tar.xz
eclipse.jdt.debug-b11619e4506ad579410f79b7f547daaf753f1dec.zip
Bug 68108 - Hot code replace not working when warnings presentv20040622av20040622
-rw-r--r--org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/hcr/CompilationUnitDelta.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/hcr/CompilationUnitDelta.java b/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/hcr/CompilationUnitDelta.java
index 69652e6b8..5fe1b66e5 100644
--- a/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/hcr/CompilationUnitDelta.java
+++ b/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/hcr/CompilationUnitDelta.java
@@ -35,6 +35,7 @@ import org.eclipse.jdt.core.compiler.IProblem;
import org.eclipse.jdt.internal.compiler.IProblemFactory;
import org.eclipse.jdt.internal.compiler.SourceElementParser;
import org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
+import org.eclipse.jdt.internal.compiler.problem.ProblemSeverities;
import org.eclipse.jdt.internal.core.JavaElement;
/**
@@ -114,7 +115,10 @@ public class CompilationUnitDelta {
private static class ProblemFactory implements IProblemFactory {
public IProblem createProblem(char[] originatingFileName, int problemId, String[] problemArguments, String[] messageArguments, int severity, int startPosition, int endPosition, int lineNumber) {
- throw new ParseError();
+ if ((severity & ProblemSeverities.Error) > 0) {
+ throw new ParseError();
+ }
+ return null;
}
public Locale getLocale() {

Back to the top