ClassCastException from RT.java in Day Communique

2010-01-06 Thread Warren Wood
The cast in the following method from RT.java throws a
ClassCastException when trying to compile Clojure within the Day
Communique 4.2.1 content management system.  Any suggestions?

thanks,

Warren

static public long lastModified(URL url, String libfile) throws
Exception{
if(url.getProtocol().equals(jar)) {
return ((JarURLConnection) url.openConnection()).getJarFile().getEntry
(libfile).getTime();
}
else {
return url.openConnection().getLastModified();
}
}
-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: ClassCastException from RT.java in Day Communique

2010-01-06 Thread Warren Wood
Here is what the exception says :

Caused by: java.lang.RuntimeException: java.lang.ClassCastException:
com.day.cq.net.jar.ContentBusJarURLConnection cannot be cast to
java.net.JarURLConnection at clojure.lang.RT.clinit(RT.java:291)

On Jan 6, 3:11 pm, Warren Wood warrenthomasw...@yahoo.com wrote:
 The cast in the following method from RT.java throws a
 ClassCastException when trying to compile Clojure within the Day
 Communique 4.2.1 content management system.  Any suggestions?

 thanks,

 Warren

 static public long lastModified(URL url, String libfile) throws
 Exception{
 if(url.getProtocol().equals(jar)) {
 return ((JarURLConnection) url.openConnection()).getJarFile().getEntry
 (libfile).getTime();}

 else {
 return url.openConnection().getLastModified();

 }
 }


-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en