From 6c0e7e6fcabde691e7c38a814b6171f9f4e77d09 Mon Sep 17 00:00:00 2001 From: Joe George Date: Tue, 7 Jul 2020 16:57:51 -0400 Subject: Add class cycle detection during unmarshaling (#946) Add support for detection of class cycles during unmarshaling in languages which do no have garbage collection: C++, Swift, and Objective-C. A `MarshalException` is thrown when a cycle is detected. The property `Ice.AcceptClassCycles` can be set to a value greater than `0` to change this behavior. --- cpp/test/Ice/optional/Client.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'cpp/test/Ice/optional/Client.cpp') diff --git a/cpp/test/Ice/optional/Client.cpp b/cpp/test/Ice/optional/Client.cpp index 1f2bb2edb45..4806e2f02cf 100644 --- a/cpp/test/Ice/optional/Client.cpp +++ b/cpp/test/Ice/optional/Client.cpp @@ -20,6 +20,7 @@ void Client::run(int argc, char** argv) { Ice::PropertiesPtr properties = createTestProperties(argc, argv); + properties->setProperty("Ice.AcceptClassCycles", "1"); #ifndef ICE_CPP11_MAPPING properties->setProperty("Ice.CollectObjects", "1"); #endif -- cgit v1.2.3