Skip to content

Commit 55b6caf

Browse files
Fix attempted recursive call error
JSON Serializable From/To JSON are currently set to non-reentrant execution, which causes error "Attempted recursive call" when (de-)serializing recursive JSON Serializable objects. Changing execution mode to shared clone reentrant execution fixes the issue. Closes #15
1 parent 0fe682a commit 55b6caf

15 files changed

Lines changed: 55 additions & 0 deletions

File tree

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.
-4 Bytes
Binary file not shown.

JSON Serializable Serializer Tests/JSON Serializable Serializer Tests.lvlib

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<Item Name="Support Files" Type="Folder">
88
<Property Name="NI.LibItem.Scope" Type="Int">2</Property>
99
<Item Name="Mock JSON Serializable.lvclass" Type="LVClass" URL="../Mock JSON Serializable/Mock JSON Serializable.lvclass"/>
10+
<Item Name="Recursive JSON Serializable.lvclass" Type="LVClass" URL="../Recursive JSON Serializable/Recursive JSON Serializable.lvclass"/>
1011
</Item>
1112
<Item Name="JSON to LVObject - Empty JSON - Returns Object Type.vi" Type="VI" URL="../JSON to LVObject - Empty JSON - Returns Object Type.vi"/>
1213
<Item Name="JSON to LVObject - Error in Serializable Class - Returns Object Type.vi" Type="VI" URL="../JSON to LVObject - Error in Serializable Class - Returns Object Type.vi"/>
@@ -18,6 +19,7 @@
1819
<Item Name="JSON to LVObject - LVClass Serializer - Is Passed to Serializable Class.vi" Type="VI" URL="../JSON to LVObject - LVClass Serializer - Is Passed to Serializable Class.vi"/>
1920
<Item Name="JSON to LVObject - Non Serializable Class - Returns Object Type.vi" Type="VI" URL="../JSON to LVObject - Non Serializable Class - Returns Object Type.vi"/>
2021
<Item Name="JSON to LVObject - Offset - Skipps Previous Data.vi" Type="VI" URL="../JSON to LVObject - Offset - Skipps Previous Data.vi"/>
22+
<Item Name="JSON to LVObject - Recursion - Returns No Error.vi" Type="VI" URL="../JSON to LVObject - Recursion - Returns No Error.vi"/>
2123
<Item Name="JSON to LVObject - Serializable Class - Returns Matching Object.vi" Type="VI" URL="../JSON to LVObject - Serializable Class - Returns Matching Object.vi"/>
2224
<Item Name="JSON to LVObject - Unknown Type - Returns Error 1373.vi" Type="VI" URL="../JSON to LVObject - Unknown Type - Returns Error 1373.vi"/>
2325
<Item Name="JSON to LVObject - Warning Input - Returns Same Warning.vi" Type="VI" URL="../JSON to LVObject - Warning Input - Returns Same Warning.vi"/>
@@ -33,6 +35,7 @@
3335
<Item Name="LVObject to JSON - Not a JSON Value - Returns Error.vi" Type="VI" URL="../LVObject to JSON - Not a JSON Value - Returns Error.vi"/>
3436
<Item Name="LVObject to JSON - Pretty Print - Is Passed to Serializable Class.vi" Type="VI" URL="../LVObject to JSON - Pretty Print - Is Passed to Serializable Class.vi"/>
3537
<Item Name="LVObject to JSON - Pretty Print - Returns Pretty JSON String.vi" Type="VI" URL="../LVObject to JSON - Pretty Print - Returns Pretty JSON String.vi"/>
38+
<Item Name="LVObject to JSON - Recursion - Returns No Error.vi" Type="VI" URL="../LVObject to JSON - Recursion - Returns No Error.vi"/>
3639
<Item Name="LVObject to JSON - Serializable Class - Returns JSON String.vi" Type="VI" URL="../LVObject to JSON - Serializable Class - Returns JSON String.vi"/>
3740
<Item Name="LVObject to JSON - Warning Input - Returns Same Warning.vi" Type="VI" URL="../LVObject to JSON - Warning Input - Returns Same Warning.vi"/>
3841
</Library>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)