Index: buildnotes_jdt-core.html
===================================================================
RCS file: /data/cvs/eclipse/org.eclipse.jdt.core/buildnotes_jdt-core.html,v
retrieving revision 1.3088
diff -u -r1.3088 buildnotes_jdt-core.html
--- buildnotes_jdt-core.html 28 May 2004 15:41:30 -0000 1.3088
+++ buildnotes_jdt-core.html 2 Jun 2004 16:41:47 -0000
@@ -32,7 +32,22 @@
+
+
+Eclipse Platform Build Notes
+Java Development Tooling Core
+Eclipse SDK 3.0RC2 Build - ? June 2004 - 3.0 RELEASE CANDIDATE 2
+
Project org.eclipse.jdt.core v_437
+(cvs).
+
+What's new in this drop
+
+Problem Reports Fixed
+65090
+ASTParser with kind == K_STATEMENTS doesn't work unless source range specified
+
Eclipse Platform Build Notes
Index: batch/org/eclipse/jdt/internal/compiler/batch/messages.properties
===================================================================
RCS file: /data/cvs/eclipse/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/messages.properties,v
retrieving revision 1.315
diff -u -r1.315 messages.properties
--- batch/org/eclipse/jdt/internal/compiler/batch/messages.properties 27 May 2004 14:21:00 -0000 1.315
+++ batch/org/eclipse/jdt/internal/compiler/batch/messages.properties 2 Jun 2004 16:41:48 -0000
@@ -12,7 +12,7 @@
### compiler
compiler.name = Eclipse Java Compiler
-compiler.version = 0.436
+compiler.version = 0.437
compiler.copyright = Copyright IBM Corp 2000, 2004. All rights reserved.
### scanning
Index: dom/org/eclipse/jdt/core/dom/ASTParser.java
===================================================================
RCS file: /data/cvs/eclipse/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTParser.java,v
retrieving revision 1.16
diff -u -r1.16 ASTParser.java
--- dom/org/eclipse/jdt/core/dom/ASTParser.java 27 May 2004 14:41:17 -0000 1.16
+++ dom/org/eclipse/jdt/core/dom/ASTParser.java 2 Jun 2004 16:41:49 -0000
@@ -644,6 +644,9 @@
if (source == null) {
throw new IllegalStateException();
}
+ if (this.sourceLength == -1) {
+ this.sourceLength = source.length;
+ }
if (this.partial) {
searcher = new NodeSearcher(this.focalPointPosition);
}
@@ -796,6 +799,9 @@
converter.setAST(ast);
CodeSnippetParsingUtil codeSnippetParsingUtil = new CodeSnippetParsingUtil();
CompilationUnit compilationUnit = ast.newCompilationUnit();
+ if (this.sourceLength == -1) {
+ this.sourceLength = this.rawSource.length;
+ }
switch(this.astKind) {
case K_STATEMENTS :
ConstructorDeclaration constructorDeclaration = codeSnippetParsingUtil.parseStatements(this.rawSource, this.sourceOffset, this.sourceLength, this.compilerOptions, true);