diff options
author | Benoit Foucher <benoit@zeroc.com> | 2021-01-22 15:52:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-22 15:52:34 +0100 |
commit | 8def9dd2596b5fd296679efb03ad5fc3b97e821a (patch) | |
tree | 1ea618aaef5c1f679a9237a4b99ad1ed5668858e | |
parent | Update Xcode projects to Xcode 12.0-compatible (diff) | |
download | ice-3.7.5.tar.bz2 ice-3.7.5.tar.xz ice-3.7.5.zip |
Fixed dispatch code to report the original dispatch exception (#1253)v3.7.5-rc2v3.7.5-rc1v3.7.5
-rw-r--r-- | CHANGELOG-3.7.md | 3 | ||||
-rw-r--r-- | csharp/src/Ice/Incoming.cs | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/CHANGELOG-3.7.md b/CHANGELOG-3.7.md index 06a08377dca..b5592563ab2 100644 --- a/CHANGELOG-3.7.md +++ b/CHANGELOG-3.7.md @@ -95,6 +95,9 @@ These are the changes since Ice 3.7.4. ## C# Changes +- Fixed dispatch warnings and unknown exceptions to report the original exception raised by + the servant implementation. + - Add .NET 5.0 support, Ice for C# assemblies are now build for .NET 5.0, .NET Standard 2.1 and .NET 4.5. - Fixed a bug that can result in the file logger log files not correctly close. diff --git a/csharp/src/Ice/Incoming.cs b/csharp/src/Ice/Incoming.cs index c467f67c349..c0a4a49f030 100644 --- a/csharp/src/Ice/Incoming.cs +++ b/csharp/src/Ice/Incoming.cs @@ -20,6 +20,7 @@ namespace IceInternal using System.IO; using System.Globalization; using System.Threading.Tasks; + using System.Runtime.ExceptionServices; public class Incoming : Ice.Request { @@ -635,6 +636,7 @@ namespace IceInternal try { + ExceptionDispatchInfo.Capture(exc).Throw(); throw exc; } catch(Ice.RequestFailedException ex) |