So as a result --
Enumeration enum = someObject.getEnumeration();
Statement will not compile with jdk1.5 because it would complain about the enum variable name being a keyword.
I dont really know the solution to this. My working solution is stay away from jdk1.5 !!!
http://forum.java.sun.com/thread.jspa?threadID=581235&messageID=2960217
Amit
----Original Message Follows---- From: Danilo Luiz Rheinheimer <[EMAIL PROTECTED]> Reply-To: "Jetspeed Users List" <[email protected]> To: [email protected] Subject: Can not build Jetspeed 2 on linux with jkd 1.5 Date: Sat, 12 Mar 2005 12:11:01 -0500
Hi,
I can not build jetspeed 2 on a machine running linux with jdk 1.5
Using jdk 1.4 and windows it is working ok (but I think the problem is with jdk 1.5 not linux).
This is the error message :
+---------------------------------------- | Build and Install all Jetspeed 2 jars Jetspeed-2 Registry Components | Memory: 58M/73M +---------------------------------------- Attempting to download jmock-SNAPSHOT.jar.
jar:install:
build:end:
build:start:
java:prepare-filesystem:
[mkdir] Created dir: /home/danilo/prg/portal/jetspeed/components/registry/target/classes
java:compile:
[echo] Compiling to /home/danilo/prg/portal/jetspeed/components/registry/target/classes
[echo]
==========================================================
NOTE: Targetting JVM 1.5, classes will not run on earlier JVMs
==========================================================
[javac] Compiling 52 source files to /home/danilo/prg/portal/jetspeed/components/registry/target/classes
[javac] /home/danilo/prg/portal/jetspeed/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageImpl.java:282: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
[javac] (try -source 1.4 or lower to use 'enum' as an identifier)
[javac] for (Enumeration enum = bundle.getKeys(); enum.hasMoreElements();)
[javac] ^
[javac] /home/danilo/prg/portal/jetspeed/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageImpl.java:282: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
[javac] (try -source 1.4 or lower to use 'enum' as an identifier)
[javac] for (Enumeration enum = bundle.getKeys(); enum.hasMoreElements();)
[javac] ^
[javac] /home/danilo/prg/portal/jetspeed/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageImpl.java:284: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
[javac] (try -source 1.4 or lower to use 'enum' as an identifier)
[javac] String key = (String) enum.nextElement();
[javac] ^
[javac] 3 errors
BUILD FAILED
File...... /home/danilo/prg/portal/jetspeed/maven.xml
Element... maven:reactor
Line...... 133
Column.... 40
Unable to obtain goal [java:compile] -- /home/danilo/.maven/cache/maven-java-plugin-1.5/plugin.jelly:63:48: <ant:javac> Compile failed; see the compiler error output for details.
Total time: 12 minutes 55 seconds
Finished at: Sat Mar 12 11:09:11 EST 2005
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
