I am putting together a new dev machine, Mac.
My old dev machine runs Netbeans 6.8. I have a file with a variable called enum. I get a warning saying :
enum is a keyword and can not be used as an identifier
I am using JDK 1.4.2 for this project.
My new machine another Mac, have installed Netbeans 7.0. Same nbproject, same file, I get an error instead of the warning and I can not find a way around this.
Anyone has any experience with this?
Thanks
Reza
For what is worth, the source is
// make sure eager jars are up-to-date
for (Enumeration enum = entry.getDescriptor().getResources().eagerJars();
enum.hasMoreElements();) {
Reference jarRef = (Reference) enum.nextElement();
OK, so what I was NOT doing in the new version what I was not setting the project’s setting for source/binary format to 1.4. It was defaulting to 1.6 even though I had set the Java platform to 1.4
Now the errors are turned into warnings.
Thanks all for the help.