Bug 32392 - Slide won't compile with new JDK 1.5
Summary: Slide won't compile with new JDK 1.5
Status: RESOLVED FIXED
Alias: None
Product: Slide
Classification: Unclassified
Component: Core (show other bugs)
Version: Nightly
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: Slide Developer List
URL: http://rakugaki.org/temp/slide-jdk15....
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-25 15:51 UTC by Taisuke Yamada
Modified: 2004-11-26 15:39 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Taisuke Yamada 2004-11-25 15:51:08 UTC
Mainly due to newly introduced "enum" keyword, current CVS source fails to 
compile with new JDK 1.5 compiler. With "ant full-dist", I get several "enum is 
now a keyword" errors, and a symbol clash error on "compareTo" method in 
org/apache/webdav/lib/WebdavFile.java.

I have hacked up a patch to fix these issues, and it is available from the URL 
above.
Comment 1 Oliver Zeigermann 2004-11-26 23:57:26 UTC
What is this part of the patch about? Skipping it...

--- ./webdavclient/clientlib/src/java/org/apache/webdav/lib/WebdavFile.java.tai
2004-11-25 09:47:01.000000000 +0900
+++ ./webdavclient/clientlib/src/java/org/apache/webdav/lib/WebdavFile.java
2004-11-25 10:39:29.000000000 +0900
@@ -479,9 +479,9 @@
     return -1;
   }
 
-  public int compareTo(Object o) {
-    return compareTo((File)o);
-  }
+//  public int compareTo(Object o) {
+//    return compareTo((File)o);
+//  }
 
   public boolean equals(Object x) {
     if(x==null)
Comment 2 Oliver Zeigermann 2004-11-27 00:39:21 UTC
Complete patch applied