User: user57
Date: 02/02/16 19:47:52
Modified: src/main/org/jboss/util AbstractNestedThrowable.java
NestedError.java NestedException.java
NestedRuntimeException.java NestedThrowable.java
Log:
o add compatibility with JDK 1.4 Throwable
Revision Changes Path
1.2 +12 -1
jboss-common/src/main/org/jboss/util/AbstractNestedThrowable.java
Index: AbstractNestedThrowable.java
===================================================================
RCS file:
/cvsroot/jboss/jboss-common/src/main/org/jboss/util/AbstractNestedThrowable.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AbstractNestedThrowable.java 15 Feb 2002 06:14:18 -0000 1.1
+++ AbstractNestedThrowable.java 17 Feb 2002 03:47:52 -0000 1.2
@@ -16,7 +16,7 @@
* A common superclass for <tt>Throwable</tt> classes that can contain
* a nested <tt>Throwable</tt> detail object.
*
- * @version <tt>$Revision: 1.1 $</tt>
+ * @version <tt>$Revision: 1.2 $</tt>
* @author <a href="mailto:[EMAIL PROTECTED]">Jason Dillon</a>
*/
public abstract class AbstractNestedThrowable
@@ -72,10 +72,21 @@
*
* @return Nested <tt>Throwable</tt>.
*/
- public final Throwable getNested() {
+ public Throwable getNested() {
return nested;
}
+ /**
+ * Return the nested <tt>Throwable</tt>.
+ *
+ * <p>For JDK 1.4 compatibility.
+ *
+ * @return Nested <tt>Throwable</tt>.
+ */
+ public Throwable getCause() {
+ return nested;
+ }
+
/**
* Returns the composite throwable message.
*
1.2 +12 -1 jboss-common/src/main/org/jboss/util/NestedError.java
Index: NestedError.java
===================================================================
RCS file: /cvsroot/jboss/jboss-common/src/main/org/jboss/util/NestedError.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- NestedError.java 15 Feb 2002 06:14:18 -0000 1.1
+++ NestedError.java 17 Feb 2002 03:47:52 -0000 1.2
@@ -16,7 +16,7 @@
* A common superclass for <tt>Error</tt> classes that can
* contain a nested <tt>Throwable</tt> detail object.
*
- * @version <tt>$Revision: 1.1 $</tt>
+ * @version <tt>$Revision: 1.2 $</tt>
* @author <a href="mailto:[EMAIL PROTECTED]">Jason Dillon</a>
*/
public class NestedError
@@ -72,10 +72,21 @@
*
* @return Nested <tt>Throwable</tt>.
*/
- public final Throwable getNested() {
+ public Throwable getNested() {
return nested;
}
+ /**
+ * Return the nested <tt>Throwable</tt>.
+ *
+ * <p>For JDK 1.4 compatibility.
+ *
+ * @return Nested <tt>Throwable</tt>.
+ */
+ public Throwable getCause() {
+ return nested;
+ }
+
/**
* Returns the composite throwable message.
*
1.2 +12 -1 jboss-common/src/main/org/jboss/util/NestedException.java
Index: NestedException.java
===================================================================
RCS file: /cvsroot/jboss/jboss-common/src/main/org/jboss/util/NestedException.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- NestedException.java 15 Feb 2002 06:14:18 -0000 1.1
+++ NestedException.java 17 Feb 2002 03:47:52 -0000 1.2
@@ -16,7 +16,7 @@
* A common superclass for <tt>Exception</tt> classes that can contain
* a nested <tt>Throwable</tt> detail object.
*
- * @version <tt>$Revision: 1.1 $</tt>
+ * @version <tt>$Revision: 1.2 $</tt>
* @author <a href="mailto:[EMAIL PROTECTED]">Jason Dillon</a>
*/
public class NestedException
@@ -72,10 +72,21 @@
*
* @return Nested <tt>Throwable</tt>.
*/
- public final Throwable getNested() {
+ public Throwable getNested() {
return nested;
}
+ /**
+ * Return the nested <tt>Throwable</tt>.
+ *
+ * <p>For JDK 1.4 compatibility.
+ *
+ * @return Nested <tt>Throwable</tt>.
+ */
+ public Throwable getCause() {
+ return nested;
+ }
+
/**
* Returns the composite throwable message.
*
1.2 +12 -1 jboss-common/src/main/org/jboss/util/NestedRuntimeException.java
Index: NestedRuntimeException.java
===================================================================
RCS file:
/cvsroot/jboss/jboss-common/src/main/org/jboss/util/NestedRuntimeException.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- NestedRuntimeException.java 15 Feb 2002 06:14:18 -0000 1.1
+++ NestedRuntimeException.java 17 Feb 2002 03:47:52 -0000 1.2
@@ -16,7 +16,7 @@
* A common superclass for <tt>RuntimeException</tt> classes that can
* contain a nested <tt>Throwable</tt> detail object.
*
- * @version <tt>$Revision: 1.1 $</tt>
+ * @version <tt>$Revision: 1.2 $</tt>
* @author <a href="mailto:[EMAIL PROTECTED]">Jason Dillon</a>
*/
public class NestedRuntimeException
@@ -72,7 +72,18 @@
*
* @return Nested <tt>Throwable</tt>.
*/
- public final Throwable getNested() {
+ public Throwable getNested() {
+ return nested;
+ }
+
+ /**
+ * Return the nested <tt>Throwable</tt>.
+ *
+ * <p>For JDK 1.4 compatibility.
+ *
+ * @return Nested <tt>Throwable</tt>.
+ */
+ public Throwable getCause() {
return nested;
}
1.2 +9 -0 jboss-common/src/main/org/jboss/util/NestedThrowable.java
Index: NestedThrowable.java
===================================================================
RCS file: /cvsroot/jboss/jboss-common/src/main/org/jboss/util/NestedThrowable.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- NestedThrowable.java 15 Feb 2002 06:14:18 -0000 1.1
+++ NestedThrowable.java 17 Feb 2002 03:47:52 -0000 1.2
@@ -16,7 +16,7 @@
/**
* Interface which is implemented by all the nested throwable flavors.
*
- * @version <tt>$Revision: 1.1 $</tt>
+ * @version <tt>$Revision: 1.2 $</tt>
* @author <a href="mailto:[EMAIL PROTECTED]">Jason Dillon</a>
*/
public interface NestedThrowable
@@ -28,6 +28,15 @@
* @return Nested throwable.
*/
Throwable getNested();
+
+ /**
+ * Return the nested <tt>Throwable</tt>.
+ *
+ * <p>For JDK 1.4 compatibility.
+ *
+ * @return Nested <tt>Throwable</tt>.
+ */
+ Throwable getCause();
/////////////////////////////////////////////////////////////////////////
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development