Bug 31605

Summary: Single line comment on the last line of a file produces a syntax error
Product: [Eclipse Project] JDT Reporter: Matt <matt_boyd>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: minor    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 RC1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Matt CLA 2003-02-11 18:17:58 EST
Putting "//" on the last line of a file produces an "Unexpected end of comment" 
syntax error.
Comment 1 Philipe Mulet CLA 2003-02-12 05:18:26 EST
The JLS explicitely states this behavior. 1.4 compilers are correctly reporting 
a line comment not ending with a line separator.

Either change the compiler compliance back to 1.3, or add a line separator at 
the end of the comment.
Comment 2 Philipe Mulet CLA 2003-02-21 09:17:29 EST
We now tolerate unterminated line comments since the spec just changed (see bug 
32476).