Apache JDO Project - patch for warnings when compiling with jdk1.5

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > August 2005 > patch for warnings when compiling with jdk1.5





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author patch for warnings when compiling with jdk1.5
Karan Malhi

2005-08-06, 2:45 am

I get the following 3 warnings when running maven in tck20 project. I have
installed jdk 1.5 . I am attaching a patch for it.

java:compile:
[echo] Compiling to /home/karan/Projects/jdo/trunk/tck20/target/classes
[javac] Compiling 491 source files to
/home/karan/Projects/jdo/trunk/tck20/target/classes
/home/karan/Projects/jdo/trunk/tck20/test/java/org/apache/jdo/tck/enhancement/EnhancerTest.java:74:
warning: as of release 1.5, 'enum' is a keyword, and may not be used as an
identifier
(try -source 1.5 to use 'enum' as a keyword)
Enumeration enum = classesToTest.propertyNames();
^
/home/karan/Projects/jdo/trunk/tck20/test/java/org/apache/jdo/tck/enhancement/EnhancerTest.java:79:
warning: as of release 1.5, 'enum' is a keyword, and may not be used as an
identifier
(try -source 1.5 to use 'enum' as a keyword)
while (enum.hasMoreElements()) {
^
/home/karan/Projects/jdo/trunk/tck20/test/java/org/apache/jdo/tck/enhancement/EnhancerTest.java:81:
warning: as of release 1.5, 'enum' is a keyword, and may not be used as an
identifier
(try -source 1.5 to use 'enum' as a keyword)
String packageName = (String) enum.nextElement();
^
Note:
/home/karan/Projects/jdo/trunk/tck20/test/java/org/apache/jdo/tck/util/SwingTestRunner.java
uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 warnings


--
Karan Malhi

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com