Bug 26922 - Comments past end-of-class breaks New Java Project
Summary: Comments past end-of-class breaks New Java Project
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M4   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-22 00:21 EST by Andrew Hayden CLA
Modified: 2003-03-23 12:35 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Hayden CLA 2002-11-22 00:21:28 EST
When creating a new Java Project using a source tree that already exists and is 
not yet under Eclipse control (e.g., a project checked out using command-line 
CVS that you want to then import into Eclipse, or any other project where the 
source tree is not currently in Eclipse control), the "New Java Project" will 
break when you choose to use the pre-existing directory as the workspace if it 
is the case that any .java file in the directory structure contains a single-
line comment immediately following the closing brace of the class definition.

Example of a java file that will break the New Project functionality:

file called MyClass.java:

****START OF FILE****
package org.eclipse.MyClass;

public class MyClass extends Object
{
    //A fun class with nothing in it that breaks Eclipse
}//A comment outside of the class definition
****END OF FILE****
Comment 1 Andrew Hayden CLA 2002-11-22 00:55:14 EST
User error.  D'oh.