This forum has been archived. Please start a new discussion on GitHub.

Patch #1 for Ice 3.5.0: Invalid generated code for structures with default values

mes California
As reported in this post, there is a bug in the generated C# code for a Slice structure that uses default values for its members. This bug can cause a run-time failure such as NullReferenceException.

The attached patch fixes this problem. To apply the source patch to a fresh Ice 3.5.0 source distribution:
$ cd Ice-3.5.0
$ patch -p1 < patch-3.5.0-1.txt
The only important change in the patch affects the "Slice" library that is used by the slice2cs compiler. The patch also includes changes to the test suite to ensure this case is covered.


ZeroC Staff