jdemetra-app
jdemetra-app copied to clipboard
Bug: userdefined tradingday variables with withspaces aren't saved/loaded correctly
If you have a variable list or a variable with withspaces in the name and use it as userdefined tradingday regressor it will be saved/loaded like multiple regressors. For example "Vars -1.x _1" would be loaded as 3 regressors with the names "Vars", "-1.x" and "_1".
It seems that the vars are properly saved in the xml workspace. The bug arises in the GUI.
I think the problem lies with the loading itself, because it uses whitespace as separator in String arrays. So 2 variables look exactly like one variable with one whitespace in a saved workspace. A possible fix could be to save them like user defined regressors but it would result in additional overhead and you need an implementation for "legacy" workspaces (aka 2.2.1 and lower).
You are right. The problem comes from the loading of the xml.
More specificaly: ec.tss.xml.XmlStrings
.
It is difficult to make changes without breaking backward compatibility. So, Jean suggests to alter the GUI to prevent names from using whitespace.