morten 01/07/19 08:07:50
Modified: java/src/org/apache/xalan/xsltc/dom DocumentCache.java
Log:
Added (a rather brutal) handling of all Exceptions thrown in the
DocumentCache.getLastModified() method. This class is provided only
as an example/skeleton, but should still - for various reasons -
be provided in the base 'xsltc.dom' package.
PR: n/a
Obtained from: n/a
Submitted by: [EMAIL PROTECTED]
Reviewed by: [EMAIL PROTECTED]
Revision Changes Path
1.5 +3 -5
xml-xalan/java/src/org/apache/xalan/xsltc/dom/DocumentCache.java
Index: DocumentCache.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/dom/DocumentCache.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- DocumentCache.java 2001/07/17 15:27:44 1.4
+++ DocumentCache.java 2001/07/19 15:07:50 1.5
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: DocumentCache.java,v 1.4 2001/07/17 15:27:44 amiro Exp $
+ * @(#)$Id: DocumentCache.java,v 1.5 2001/07/19 15:07:50 morten Exp $
*
* The Apache Software License, Version 1.1
*
@@ -238,10 +238,8 @@
}
return(timestamp);
}
- catch (MalformedURLException e) {
- return(System.currentTimeMillis());
- }
- catch (IOException e) {
+ // Brutal handling of all exceptions
+ catch (Exception e) {
return(System.currentTimeMillis());
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]