patch for warnings when compiling with jdk1.5
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache JDO Project > patch for warnings when compiling with jdk1.5




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    patch for warnings when compiling with jdk1.5  
Karan Malhi


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-06-05 07: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/enhancemen
t/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/enhancemen
t/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/enhancemen
t/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/Swing
TestRunner.java
uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 warnings


-- 
Karan Malhi






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:11 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register