summaryrefslogtreecommitdiff
path: root/java/src/Ice/AsyncResult.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/Ice/AsyncResult.java')
-rw-r--r--java/src/Ice/AsyncResult.java13
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();
}
});