diff options
author | Benoit Foucher <benoit@zeroc.com> | 2014-06-27 10:31:41 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2014-06-27 10:31:41 +0200 |
commit | a4f93259dc3494d98addf38e69b87eb557d432b3 (patch) | |
tree | d2b78bb5cea24e33dc1b46be22dba6167e96c9ed /java/test/Ice/invoke/lambda/AllTests.java | |
parent | Fix for ICE-5515 (ice_staticId on proxies) in Java, C#, Python, Ruby and PHP ... (diff) | |
download | ice-a4f93259dc3494d98addf38e69b87eb557d432b3.tar.bz2 ice-a4f93259dc3494d98addf38e69b87eb557d432b3.tar.xz ice-a4f93259dc3494d98addf38e69b87eb557d432b3.zip |
Better collocation optimization, fix for ICE-5489, ICE-5484
Diffstat (limited to 'java/test/Ice/invoke/lambda/AllTests.java')
-rw-r--r-- | java/test/Ice/invoke/lambda/AllTests.java | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/java/test/Ice/invoke/lambda/AllTests.java b/java/test/Ice/invoke/lambda/AllTests.java index 3ce788b2e65..5b7764615a3 100644 --- a/java/test/Ice/invoke/lambda/AllTests.java +++ b/java/test/Ice/invoke/lambda/AllTests.java @@ -60,14 +60,13 @@ public class AllTests private boolean _called; } - private static class Callback_Object_opStringI extends Ice.Callback_Object_ice_invoke + private static class Callback_Object_opStringI { public Callback_Object_opStringI(Ice.Communicator communicator) { _communicator = communicator; } - @Override public void response(boolean ok, byte[] outEncaps) { if(ok) @@ -87,12 +86,15 @@ public class AllTests } } - @Override - public void exception(Ice.LocalException ex) + public void exception(Ice.Exception ex) { test(false); } + public void sent(boolean sent) + { + } + public void check() { callback.check(); @@ -102,14 +104,13 @@ public class AllTests private Callback callback = new Callback(); } - private static class Callback_Object_opExceptionI extends Ice.Callback_Object_ice_invoke + private static class Callback_Object_opExceptionI { public Callback_Object_opExceptionI(Ice.Communicator communicator) { _communicator = communicator; } - @Override public void response(boolean ok, byte[] outEncaps) { if(ok) @@ -136,8 +137,7 @@ public class AllTests } } - @Override - public void exception(Ice.LocalException ex) + public void exception(Ice.Exception ex) { test(false); } @@ -147,6 +147,10 @@ public class AllTests callback.check(); } + public void sent(boolean sent) + { + } + private Ice.Communicator _communicator; private Callback callback = new Callback(); } @@ -173,7 +177,7 @@ public class AllTests Callback_Object_opStringI cb2 = new Callback_Object_opStringI(communicator); cl.begin_ice_invoke("opString", Ice.OperationMode.Normal, inEncaps, (boolean ret, byte[] outParams) -> cb2.response(ret, outParams), - (Ice.LocalException ex) -> cb2.exception(ex), + (Ice.Exception ex) -> cb2.exception(ex), (boolean sent) -> cb2.sent(sent)); cb2.check(); } @@ -183,7 +187,7 @@ public class AllTests Callback_Object_opExceptionI cb2 = new Callback_Object_opExceptionI(communicator); cl.begin_ice_invoke("opException", Ice.OperationMode.Normal, null, (boolean ret, byte[] outParams) -> cb2.response(ret, outParams), - (Ice.LocalException ex) -> cb2.exception(ex), + (Ice.Exception ex) -> cb2.exception(ex), (boolean sent) -> cb2.sent(sent)); cb2.check(); } |