Bug 31605 - Single line comment on the last line of a file produces a syntax error
Summary: Single line comment on the last line of a file produces a syntax error
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 2.1 RC1   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-11 18:17 EST by Matt CLA
Modified: 2003-02-21 09:17 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 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).