Bug 26142

Summary: JACKS: Must reject invalid character after class definition
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: philippe_mulet
Version: 2.1   
Target Milestone: 2.1 M4   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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.