MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
joehuangathome
Post subject: Disallow identifiers called 'enum'  PostPosted: Dec 22, 2011 - 05:42 PM



Joined: May 08, 2009
Posts: 33

In ME10.0 version, I am using compiler level 1.4. In Preference->Java->Compiler->JDK Compliance, "Disallow identifers called 'enum'" is set to "Warning", but why at compile time, a 'enum' variable from my application still popped up as ERROR in the Problems tabe? I can't change the variable named 'enum' at this time. How to make this warning work as not a compile error? Thanks!

Joe
 
 View user's profile Send private message  
Reply with quote Back to top
cconway
Post subject:   PostPosted: Dec 22, 2011 - 06:22 PM



Joined: Apr 04, 2011
Posts: 196

Hi Joe,

Please verify that your project is also using compliance of JDK 1.4 by:
1. Right-click on the project and select Properties.
2. Select Java Compiler on the left.
3. Verify the compliance setting on the right panel.

If that is correct, verify that the Java 1.4 Facet is also in use on the project:
1. In the same properties dialog, select MyEclipse > Project Facets
2. Verify the Java 1.4 facet is selected in the list.
3. If it's not 1.4, use the arrow next to the version to select 1.4.

_________________
Cindy
MyEclipse for Spring Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
joehuangathome
Post subject: Cindy  PostPosted: Dec 22, 2011 - 07:27 PM



Joined: May 08, 2009
Posts: 33

Following your advice, at the project properties level, I set value for "Disallow Identifiers called 'enum'". Worked great! Thank you!

Joe
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits