Home Patches

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

mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
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
Sign In or Register to comment.