String.split on empty strings in FlexSim 2018.0.5

String.split on empty strings in FlexSim 2018.0.5

sastanin
Collaborator Collaborator
467 Views
3 Replies
Message 1 of 4

String.split on empty strings in FlexSim 2018.0.5

sastanin
Collaborator
Collaborator

[ FlexSim 18.0.5 ]

The issue reported in this thread is fixed in FlexSim 2018.0.5, but there is another backwards compatibility issue with the same method introduced in 2018.0.5:

string s = "";
return s.split(";");
// FlexSim 2018.0.4: []
// FlexSim 2018.0.5: [""]
Accepted solutions (1)
468 Views
3 Replies
Replies (3)
Message 2 of 4

philboboADSK
Autodesk
Autodesk
Accepted solution

18.1.1 includes the bug fixes in 18.0.5.

Also, string.split(";") on an empty string is supposed to return [""]

12003-string-split.png



Phil BoBo
Sr. Manager, Software Development
Message 3 of 4

sastanin
Collaborator
Collaborator

Thank you. The point is that the behavior of the method has changed from 18.0.4 to 18.0.5, and this change creates subtle bugs in the existing code base.

0 Likes
Message 4 of 4

philboboADSK
Autodesk
Autodesk

That's why it is listed under "backwards compatibility notes" in the release notes.

The same change that fixed the other issue also fixed this bug.



Phil BoBo
Sr. Manager, Software Development