Bug 32476

Summary: Spec now allows line comment to end with EOF
Product: [Eclipse Project] JDT Reporter: Jerome Lanneluc <jerome_lanneluc>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 RC1   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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.