Bug 135346 - enum should not be used as identified shown when enum in package.
Summary: enum should not be used as identified shown when enum in package.
Status: RESOLVED DUPLICATE of bug 135105
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-06 14:29 EDT by MG CLA
Modified: 2006-04-10 12:52 EDT (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 MG CLA 2006-04-06 14:29:41 EDT
import org.apache.commons.lang.enum.Enum;

The enum package gets underlined by this warning.
Comment 1 Martin Aeschlimann CLA 2006-04-10 12:46:47 EDT
If 5.0 you can't have a package where 'enum' is a fragment.

JavaConventions should warn for such names. It seems we need an extra parameter on the validate methods to know if this is a validation for 5.0 or for less.
Comment 2 Olivier Thomann CLA 2006-04-10 12:52:11 EDT
Closing as dup of bug 135105.
One way to fix it would be that the scanner used by the JavaConventions is a 1.5 scanner. Then it would reject assert and enum as a keyword.

Or we need to pass in the compiler options to propose identifiers according to the source setting.

*** This bug has been marked as a duplicate of 135105 ***