Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManoj Palat2013-03-11 17:00:00 +0000
committerJayaprakash Arthanareeswaran2013-04-03 09:03:09 +0000
commitf5bf5fb6d6ee7bebd38aa8f1dfeaadd8677f2314 (patch)
treea38b4e2139cf31ef512ed2708ff6a40cbf5c7be8
parentfd21f493e3168b87fbe342edd55057dcfebdb3df (diff)
downloadeclipse.jdt.core-f5bf5fb6d6ee7bebd38aa8f1dfeaadd8677f2314.tar.gz
eclipse.jdt.core-f5bf5fb6d6ee7bebd38aa8f1dfeaadd8677f2314.tar.xz
eclipse.jdt.core-f5bf5fb6d6ee7bebd38aa8f1dfeaadd8677f2314.zip
Fix for bug 400767 - Endless loop in AbstractCommentParser caused by
JavadocParser
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/JavadocParser.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/JavadocParser.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/JavadocParser.java
index 699af7188b..90044aeefd 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/JavadocParser.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/JavadocParser.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2011 IBM Corporation and others.
+ * Copyright (c) 2000, 2013 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
@@ -92,6 +92,7 @@ public class JavadocParser extends AbstractCommentParser {
// Parse
try {
this.source = this.sourceParser.scanner.source;
+ this.scanner.setSource(this.source); // updating source in scanner
if (this.checkDocComment) {
// Initialization
this.scanner.lineEnds = this.sourceParser.scanner.lineEnds;
@@ -140,6 +141,7 @@ public class JavadocParser extends AbstractCommentParser {
}
} finally {
this.source = null; // release source as soon as finished
+ this.scanner.setSource((char[]) null); //release source in scanner
}
return this.deprecated;
}

Back to the top