Bug 32476 - Spec now allows line comment to end with EOF
Summary: Spec now allows line comment to end with EOF
Status: VERIFIED FIXED
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 RC1   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-21 07:55 EST by Jerome Lanneluc CLA
Modified: 2003-03-11 05:43 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 Jerome Lanneluc CLA 2003-02-21 07:55:24 EST
Build 20030221

From a post on eclipse.tools newsgroup by Martin Mobius:

There were a thread in de.comp.lang.java

quoting from there

http://developer.java.sun.com/developer/bugParade/bugs/4733858.html

"We have changed the spec to allow // comments that end at EOF.  The 
compiler now allows that."

-> "http://java.sun.com/docs/books/jls/clarifications-2-2nd-ed.html"

"JLS 3.7

The production for EndOfLineComment should read:

// CharactersInLineopt

In other words, the requirement for a LineTerminator is dropped. This 
requirement was not implemented by the great majority of compilers,
and 
serves no purpose."
Comment 1 Philipe Mulet CLA 2003-02-21 08:51:47 EST
Fixed in latest.
Comment 2 David Audel CLA 2003-03-11 05:43:52 EST
Verified.