diff options
author | Benoit Foucher <benoit@zeroc.com> | 2009-12-01 14:02:05 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2009-12-01 14:02:05 +0100 |
commit | cd63c3e37dde04051fb2f4631f788bed7b48937b (patch) | |
tree | ae2c581bd228ec42c6eb46bf83a88f1174623bac /java/src/Ice/AsyncResult.java | |
parent | SLES RPM fixes (diff) | |
download | ice-cd63c3e37dde04051fb2f4631f788bed7b48937b.tar.bz2 ice-cd63c3e37dde04051fb2f4631f788bed7b48937b.tar.xz ice-cd63c3e37dde04051fb2f4631f788bed7b48937b.zip |
Added support for Ice::Dispatcher
Diffstat (limited to 'java/src/Ice/AsyncResult.java')
-rw-r--r-- | java/src/Ice/AsyncResult.java | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/java/src/Ice/AsyncResult.java b/java/src/Ice/AsyncResult.java index 67b3ecbe0b2..24b17fe10db 100644 --- a/java/src/Ice/AsyncResult.java +++ b/java/src/Ice/AsyncResult.java @@ -128,7 +128,8 @@ public class AsyncResult } if(_exception != null) { - throw (LocalException)_exception.fillInStackTrace(); // TODO: Correct? + //throw (LocalException)_exception.fillInStackTrace(); + throw _exception; } return (_state & OK) > 0; } @@ -158,12 +159,11 @@ public class AsyncResult // try { - _instance.clientThreadPool().execute(new IceInternal.ThreadPoolWorkItem() + _instance.clientThreadPool().execute(new IceInternal.DispatchWorkItem(_instance) { public void - execute(IceInternal.ThreadPoolCurrent current) + run() { - current.ioCompleted(); __exception(ex); } }); @@ -225,12 +225,11 @@ public class AsyncResult // try { - _instance.clientThreadPool().execute(new IceInternal.ThreadPoolWorkItem() + _instance.clientThreadPool().execute(new IceInternal.DispatchWorkItem(_instance) { public void - execute(IceInternal.ThreadPoolCurrent current) + run() { - current.ioCompleted(); __sentInternal(); } }); |