Bug 41739

Summary: Assert Keyword
Product: [Eclipse Project] JDT Reporter: Simon Fairfax <gbtmud>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Simon Fairfax CLA 2003-08-20 12:24:38 EDT
THe JDT willnot recognize 'assert' as a keyword, and will not compile it 
period. I would really apreciate it if you would add this keyword.

Thank you.
Comment 1 Olivier Thomann CLA 2003-08-20 12:35:20 EDT
What are your compiler settings? The assert keyword is supported for a while.
You need to change your compiler settings to 1.4 mode.
See Preferences>Java>Compiler>Compliance and Classfiles>JDK Compliance.
Set it to 1.4.
You can also set these preferences on a per project basis.
Comment 2 Olivier Thomann CLA 2003-08-20 12:44:14 EDT
Change severity since this looks like a configuration problem not a bug.
Comment 3 Olivier Thomann CLA 2003-08-20 13:28:15 EDT
Ok to close?
Comment 4 Olivier Thomann CLA 2003-08-21 11:44:33 EDT
Could you please let me know if changing the settings to 1.4 mode fixes your
problem?
Thanks. Without reply from you, it will be closed as INVALID.
Comment 5 Olivier Thomann CLA 2003-08-21 14:19:00 EDT
Close as INVALID.
Reopen if you cannot use assert as a keyword even if the 1.4 mode is activated.
Comment 6 Simon Fairfax CLA 2003-08-22 11:44:52 EDT
sorry, yes changing the setting fixed the problem.