Bug 42243 - Incorrect syntax diagnosis for assert in source 1.3 mode
Summary: Incorrect syntax diagnosis for assert in source 1.3 mode
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.3   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-29 05:25 EDT by Philipe Mulet CLA
Modified: 2007-06-29 06:50 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2003-08-29 05:25:49 EDT
Build 3.0M3

The following source compiled in 1.3 source mode is flagged with a syntax error 
as expected (assert isn't a keyword in 1.3 mode), but the error diagnosis is 
rather misleading.

public class X {
	public static void main(String[] args) {
		assert true;
	}
}
--> Syntax error on token "assert", assert expected	!?
Comment 1 David Audel CLA 2004-05-11 08:00:22 EDT
Post 3.0
Comment 2 David Audel CLA 2007-06-29 06:48:07 EDT
Reopen
Comment 3 David Audel CLA 2007-06-29 06:50:00 EDT
Cannot be reproduced with 3.3. Fixed in a previous build.

Test added
  ComplianceDiagnoseTest#test0053()