cmlenz 2002/06/27 07:08:05
Modified: src/share/org/apache/slide/common
PropertyParseException.java
Log:
Replace Exception with Throwable.
The problem is that java.lang.Throwable has a getCause(): Throwable
method since JDK1.4, which conflicts with a getCause(): Exception, of
course. This change should fix that, while not introducing any problems
AFAICT.
Revision Changes Path
1.2 +7 -7
jakarta-slide/src/share/org/apache/slide/common/PropertyParseException.java
Index: PropertyParseException.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/share/org/apache/slide/common/PropertyParseException.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- PropertyParseException.java 26 Jun 2002 05:00:00 -0000 1.1
+++ PropertyParseException.java 27 Jun 2002 14:08:04 -0000 1.2
@@ -77,7 +77,7 @@
* The exception that was the cause of this exception
* (may be <code>null</code>)
*/
- protected Exception cause = null;
+ protected Throwable cause = null;
/**
* Creates a PropertyParseException.
@@ -94,7 +94,7 @@
* @param message the message of this exception.
* @param cause the exception that was the cause of this exception.
*/
- public PropertyParseException(String message, Exception cause) {
+ public PropertyParseException(String message, Throwable cause) {
super(message);
this.cause = cause;
}
@@ -105,7 +105,7 @@
*
* @return the exception that was the cause of this exception.
*/
- public Exception getCause() {
+ public Throwable getCause() {
return cause;
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>