### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: dom/org/eclipse/jdt/core/dom/ASTParser.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTParser.java,v retrieving revision 1.80 diff -u -r1.80 ASTParser.java --- dom/org/eclipse/jdt/core/dom/ASTParser.java 27 May 2008 22:24:50 -0000 1.80 +++ dom/org/eclipse/jdt/core/dom/ASTParser.java 16 Jun 2008 16:01:10 -0000 @@ -592,9 +592,10 @@ * and match the name of the main (public) class or interface declared in the source.

* *

This name must represent the full path of the unit inside the given project. For example, if the source - * declares a public class named "Foo" in a project "P", the name of the compilation unit must be - * "/P/Foo.java". If the source declares a public class name "Bar" in a package "p1.p2" in a project "P", - * the name of the compilation unit must be "/P/p1/p2/Bar.java".

+ * declares a public class named "Foo" in a project "P" where the source folder is the project itself, the name + * of the compilation unit must be "/P/Foo.java". + * If the source declares a public class name "Bar" in a package "p1.p2" in a project "P" in a source folder "src", + * the name of the compilation unit must be "/P/src/p1/p2/Bar.java".

* * @param unitName the name of the compilation unit that would contain the source * string, or null if none