From: Richard G C. <pim...@us...> - 2002-11-29 08:02:06
|
Update of /cvsroot/openorb/OpenORB/src/main/org/omg/CORBA In directory sc8-pr-cvs1:/tmp/cvs-serv14228/OpenORB/src/main/org/omg/CORBA Modified Files: SystemException.java Log Message: removed JRE1.4 dependency Index: SystemException.java =================================================================== RCS file: /cvsroot/openorb/OpenORB/src/main/org/omg/CORBA/SystemException.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- SystemException.java 10 Nov 2002 20:59:09 -0000 1.7 +++ SystemException.java 29 Nov 2002 08:02:01 -0000 1.8 @@ -17,6 +17,7 @@ import org.apache.avalon.framework.CascadingThrowable; import org.openorb.util.JREVersion; +import org.openorb.util.ExceptionTool; public abstract class SystemException extends RuntimeException @@ -42,7 +43,7 @@ { if ( JRE_1_4 ) { - return super.initCause( cause ); + ExceptionTool.initCause( ( Throwable ) this, cause ); } if ( m_cause != this ) @@ -59,10 +60,6 @@ public Throwable getCause() { - if ( JRE_1_4 ) - { - return super.getCause(); - } return ( ( m_cause == this ) ? null : m_cause ); } } |