diff options
author | Benoit Foucher <benoit@zeroc.com> | 2017-03-23 15:29:25 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2017-03-23 15:29:25 +0100 |
commit | 1597a75419cd8049252cfbca6fce6ae95ef8b2c7 (patch) | |
tree | 2b2c858df1dbe68c1d576cae06c4713fd2ad5c40 /java-compat/src | |
parent | Use Ice\None with PHP namespace mapping (diff) | |
download | ice-1597a75419cd8049252cfbca6fce6ae95ef8b2c7.tar.bz2 ice-1597a75419cd8049252cfbca6fce6ae95ef8b2c7.tar.xz ice-1597a75419cd8049252cfbca6fce6ae95ef8b2c7.zip |
Fix for ICE-7125 - Added support for Ice.ClassGraphDepthMax
Diffstat (limited to 'java-compat/src')
3 files changed, 18 insertions, 7 deletions
diff --git a/java-compat/src/Ice/src/main/java/Ice/ConnectionI.java b/java-compat/src/Ice/src/main/java/Ice/ConnectionI.java index 165b6578b0e..08336df7d02 100644 --- a/java-compat/src/Ice/src/main/java/Ice/ConnectionI.java +++ b/java-compat/src/Ice/src/main/java/Ice/ConnectionI.java @@ -2823,7 +2823,9 @@ public final class ConnectionI extends IceInternal.EventHandler // // Suppress AssertionError and OutOfMemoryError, rethrow everything else. // - if(!(t instanceof java.lang.AssertionError || t instanceof java.lang.OutOfMemoryError)) + if(!(t instanceof java.lang.AssertionError || + t instanceof java.lang.OutOfMemoryError || + t instanceof java.lang.StackOverflowError)) { throw (java.lang.Error)t; } @@ -2848,7 +2850,9 @@ public final class ConnectionI extends IceInternal.EventHandler // // Suppress AssertionError and OutOfMemoryError, rethrow everything else. // - if(!(ex instanceof java.lang.AssertionError || ex instanceof java.lang.OutOfMemoryError)) + if(!(ex instanceof java.lang.AssertionError || + ex instanceof java.lang.OutOfMemoryError || + ex instanceof java.lang.StackOverflowError)) { throw ex; } diff --git a/java-compat/src/Ice/src/main/java/IceInternal/CollocatedRequestHandler.java b/java-compat/src/Ice/src/main/java/IceInternal/CollocatedRequestHandler.java index ac11851836e..94402c7389e 100644 --- a/java-compat/src/Ice/src/main/java/IceInternal/CollocatedRequestHandler.java +++ b/java-compat/src/Ice/src/main/java/IceInternal/CollocatedRequestHandler.java @@ -340,7 +340,9 @@ public class CollocatedRequestHandler implements RequestHandler, ResponseHandler // // Suppress AssertionError and OutOfMemoryError, rethrow everything else. // - if(!(t instanceof java.lang.AssertionError || t instanceof java.lang.OutOfMemoryError)) + if(!(t instanceof java.lang.AssertionError || + t instanceof java.lang.OutOfMemoryError || + t instanceof java.lang.StackOverflowError)) { throw (java.lang.Error)t; } @@ -365,13 +367,17 @@ public class CollocatedRequestHandler implements RequestHandler, ResponseHandler // // Suppress AssertionError and OutOfMemoryError, rethrow everything else. // - if(!(ex instanceof java.lang.AssertionError || ex instanceof java.lang.OutOfMemoryError)) + if(!(ex instanceof java.lang.AssertionError || + ex instanceof java.lang.OutOfMemoryError || + ex instanceof java.lang.StackOverflowError)) { throw ex; } } - - _adapter.decDirectCount(); + finally + { + _adapter.decDirectCount(); + } } private void diff --git a/java-compat/src/Ice/src/main/java/IceInternal/PropertyNames.java b/java-compat/src/Ice/src/main/java/IceInternal/PropertyNames.java index 1b2db0f1030..dc971363790 100644 --- a/java-compat/src/Ice/src/main/java/IceInternal/PropertyNames.java +++ b/java-compat/src/Ice/src/main/java/IceInternal/PropertyNames.java @@ -6,7 +6,7 @@ // ICE_LICENSE file included in this distribution. // // ********************************************************************** -// Generated by makeprops.py from file ./config/PropertyNames.xml, Tue Feb 28 15:01:12 2017 +// Generated by makeprops.py from file ./config/PropertyNames.xml, Thu Mar 23 15:24:16 2017 // IMPORTANT: Do not edit this file -- any edits made here will be lost! @@ -79,6 +79,7 @@ public final class PropertyNames new Property("Ice\\.BatchAutoFlush", true, null), new Property("Ice\\.BatchAutoFlushSize", false, null), new Property("Ice\\.ChangeUser", false, null), + new Property("Ice\\.ClassGraphDepthMax", false, null), new Property("Ice\\.ClientAccessPolicyProtocol", false, null), new Property("Ice\\.Compression\\.Level", false, null), new Property("Ice\\.CollectObjects", false, null), |