diff options
author | Benoit Foucher <benoit@zeroc.com> | 2009-09-09 14:55:38 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2009-09-09 14:55:38 +0200 |
commit | fbe6ac868d262e65924fc6ff436bcfeac06c3b79 (patch) | |
tree | 10bfb7b150e0241d8bfb4605d5b6d644cd572af6 /java/src/Ice/ConnectionI.java | |
parent | Update DB patch for unicode issues with oracle revised patch (diff) | |
download | ice-fbe6ac868d262e65924fc6ff436bcfeac06c3b79.tar.bz2 ice-fbe6ac868d262e65924fc6ff436bcfeac06c3b79.tar.xz ice-fbe6ac868d262e65924fc6ff436bcfeac06c3b79.zip |
Fixed bug 4146 - re-throwing exception with fillInStackTrace
Diffstat (limited to 'java/src/Ice/ConnectionI.java')
-rw-r--r-- | java/src/Ice/ConnectionI.java | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/java/src/Ice/ConnectionI.java b/java/src/Ice/ConnectionI.java index 99bff2c7ab7..3c5be9e3ca9 100644 --- a/java/src/Ice/ConnectionI.java +++ b/java/src/Ice/ConnectionI.java @@ -36,7 +36,7 @@ public final class ConnectionI extends IceInternal.EventHandler implements Conne if(_state >= StateClosed) // The connection might already be closed if the communicator was destroyed. { assert(_exception != null); - throw _exception; + throw (Ice.LocalException)_exception.fillInStackTrace(); } if(!initialize(IceInternal.SocketOperation.None) || !validate(IceInternal.SocketOperation.None)) @@ -64,7 +64,7 @@ public final class ConnectionI extends IceInternal.EventHandler implements Conne if(_state >= StateClosing) { assert(_exception != null); - throw _exception; + throw (Ice.LocalException)_exception.fillInStackTrace(); } } @@ -200,7 +200,7 @@ public final class ConnectionI extends IceInternal.EventHandler implements Conne if(_exception != null) { assert(_state >= StateClosing); - throw _exception; + throw (Ice.LocalException)_exception.fillInStackTrace(); } } @@ -335,7 +335,7 @@ public final class ConnectionI extends IceInternal.EventHandler implements Conne // to send our request, we always try to send the request // again. // - throw new IceInternal.LocalExceptionWrapper(_exception, true); + throw new IceInternal.LocalExceptionWrapper((Ice.LocalException)_exception.fillInStackTrace(), true); } assert(_state > StateNotValidated); @@ -374,7 +374,7 @@ public final class ConnectionI extends IceInternal.EventHandler implements Conne { setState(StateClosed, ex); assert(_exception != null); - throw _exception; + throw (Ice.LocalException)_exception.fillInStackTrace(); } if(response) @@ -402,7 +402,7 @@ public final class ConnectionI extends IceInternal.EventHandler implements Conne // to send our request, we always try to send the request // again. // - throw new IceInternal.LocalExceptionWrapper(_exception, true); + throw new IceInternal.LocalExceptionWrapper((Ice.LocalException)_exception.fillInStackTrace(), true); } assert(_state > StateNotValidated); @@ -436,7 +436,7 @@ public final class ConnectionI extends IceInternal.EventHandler implements Conne { setState(StateClosed, ex); assert(_exception != null); - throw _exception; + throw (Ice.LocalException)_exception.fillInStackTrace(); } if(response) @@ -476,11 +476,11 @@ public final class ConnectionI extends IceInternal.EventHandler implements Conne // if(_batchStream.isEmpty()) { - throw new IceInternal.LocalExceptionWrapper(_exception, true); + throw new IceInternal.LocalExceptionWrapper((Ice.LocalException)_exception.fillInStackTrace(), true); } else { - throw _exception; + throw (Ice.LocalException)_exception.fillInStackTrace(); } } @@ -524,7 +524,7 @@ public final class ConnectionI extends IceInternal.EventHandler implements Conne if(_exception != null) { - throw _exception; + throw (Ice.LocalException)_exception.fillInStackTrace(); } boolean flush = false; @@ -577,7 +577,7 @@ public final class ConnectionI extends IceInternal.EventHandler implements Conne { setState(StateClosed, ex); assert(_exception != null); - throw _exception; + throw (Ice.LocalException)_exception.fillInStackTrace(); } // @@ -670,7 +670,7 @@ public final class ConnectionI extends IceInternal.EventHandler implements Conne if(_exception != null) { - throw _exception; + throw (Ice.LocalException)_exception.fillInStackTrace(); } if(_batchRequestNum == 0) @@ -697,7 +697,7 @@ public final class ConnectionI extends IceInternal.EventHandler implements Conne { setState(StateClosed, ex); assert(_exception != null); - throw _exception; + throw (Ice.LocalException)_exception.fillInStackTrace(); } // @@ -726,7 +726,7 @@ public final class ConnectionI extends IceInternal.EventHandler implements Conne if(_exception != null) { - throw _exception; + throw (Ice.LocalException)_exception.fillInStackTrace(); } if(_batchRequestNum == 0) @@ -753,7 +753,7 @@ public final class ConnectionI extends IceInternal.EventHandler implements Conne { setState(StateClosed, ex); assert(_exception != null); - throw _exception; + throw (Ice.LocalException)_exception.fillInStackTrace(); } // @@ -785,7 +785,7 @@ public final class ConnectionI extends IceInternal.EventHandler implements Conne if(_state >= StateClosed) { assert(_exception != null); - throw _exception; + throw (Ice.LocalException)_exception.fillInStackTrace(); } sendMessage(new OutgoingMessage(os, compressFlag != 0, true)); @@ -819,7 +819,7 @@ public final class ConnectionI extends IceInternal.EventHandler implements Conne if(_state >= StateClosed) { assert(_exception != null); - throw _exception; + throw (Ice.LocalException)_exception.fillInStackTrace(); } if(_state == StateClosing && _dispatchCount == 0) |