diff options
author | Benoit Foucher <benoit@zeroc.com> | 2013-07-04 11:20:07 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2013-07-04 11:20:07 +0200 |
commit | 0df052034b03907de02d8eac162e84e5ba50bfd5 (patch) | |
tree | f424142a198431b2a8981bfaebe79410ef4f5481 /java/test/Ice/exceptions/AMDThrowerI.java | |
parent | Fixed ICE-5340 - FileLock jlint errors in android (diff) | |
download | ice-0df052034b03907de02d8eac162e84e5ba50bfd5.tar.bz2 ice-0df052034b03907de02d8eac162e84e5ba50bfd5.tar.xz ice-0df052034b03907de02d8eac162e84e5ba50bfd5.zip |
Fixed ICE-5369 - fixed asserting on AMD response if memory limit exception was raised
Diffstat (limited to 'java/test/Ice/exceptions/AMDThrowerI.java')
-rw-r--r-- | java/test/Ice/exceptions/AMDThrowerI.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/java/test/Ice/exceptions/AMDThrowerI.java b/java/test/Ice/exceptions/AMDThrowerI.java index bb69ac2a1da..9f924e42f56 100644 --- a/java/test/Ice/exceptions/AMDThrowerI.java +++ b/java/test/Ice/exceptions/AMDThrowerI.java @@ -16,6 +16,7 @@ import test.Ice.exceptions.AMD.Test.AMD_Thrower_supportsUndeclaredExceptions; import test.Ice.exceptions.AMD.Test.AMD_Thrower_throwAasA; import test.Ice.exceptions.AMD.Test.AMD_Thrower_throwAorDasAorD; import test.Ice.exceptions.AMD.Test.AMD_Thrower_throwAssertException; +import test.Ice.exceptions.AMD.Test.AMD_Thrower_throwMemoryLimitException; import test.Ice.exceptions.AMD.Test.AMD_Thrower_throwBasA; import test.Ice.exceptions.AMD.Test.AMD_Thrower_throwBasB; import test.Ice.exceptions.AMD.Test.AMD_Thrower_throwCasA; @@ -189,6 +190,12 @@ public final class AMDThrowerI extends _ThrowerDisp } public void + throwMemoryLimitException_async(AMD_Thrower_throwMemoryLimitException cb, byte[] seq, Ice.Current current) + { + cb.ice_response(new byte[1024 * 20]); // 20KB is over the configured 10KB message size max. + } + + public void throwLocalExceptionIdempotent_async(AMD_Thrower_throwLocalExceptionIdempotent cb, Ice.Current current) { cb.ice_exception(new Ice.TimeoutException()); |