Bug 26142 - JACKS: Must reject invalid character after class definition
Summary: JACKS: Must reject invalid character after class definition
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:46 EST by Olivier Thomann CLA
Modified: 2002-12-17 10:25 EST (History)
1 user (show)

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:46:15 EST
Using 1112, we should reject this code:
class A {} \

Javac and jikes reject it.
Comment 1 Olivier Thomann CLA 2002-11-14 09:02:02 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:23 EST
Change summary.
Comment 3 Olivier Thomann CLA 2002-11-14 13:11:40 EST
What error do we want to report in this case?
Invalid character constant?
Invalid Unicode?
Invalid character?

The fix is trivial. 


Comment 4 Olivier Thomann CLA 2002-11-18 10:27:39 EST
For now I return an invalid character. It can easily be changed for something else.
Fixed and released in 2.1 stream.
Regression tests added.
Comment 5 David Audel CLA 2002-12-17 10:25:28 EST
Verified.