Bug 41739 - Assert Keyword
Summary: Assert Keyword
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M3   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-20 12:24 EDT by Simon Fairfax CLA
Modified: 2003-08-22 11:44 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 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.