Bug 26141 - JACKS: Should report unterminated comment
Summary: JACKS: Should report unterminated comment
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 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-13 13:43 EST by Olivier Thomann CLA
Modified: 2002-12-17 10:24 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 Olivier Thomann CLA 2002-11-13 13:43:02 EST
Using 1112, this code compiles fine. An unterminated comment must be reported.

class A {} /*

Javac and jikes do it.
Comment 1 Olivier Thomann CLA 2002-11-14 09:01:55 EST
Probably a bug in the scanner that doesn't return the invalid character when 
EOF is reached.
Comment 2 Olivier Thomann CLA 2002-11-14 12:06:12 EST
Change summary.
Comment 3 Olivier Thomann CLA 2002-11-14 13:12:12 EST
We can easily return an unterminated comment error.
Comment 4 Olivier Thomann CLA 2002-11-18 10:28:31 EST
Now I return an unterminated comment.
Fixed and released in 2.1 stream.
Regression tests added.
Comment 5 David Audel CLA 2002-12-17 10:24:30 EST
Verified.