Ticket #414 (closed defect: fixed)
JavaBean Array: Multi select list (String[]) is not stored correctly
| Reported by: | adrian.wyssmann | Owned by: | yoram.shamir |
|---|---|---|---|
| Priority: | major | Milestone: | jsystem 5.6 |
| Component: | jsystem runner | Keywords: | |
| Cc: | Regression: | ||
| Known Issue: | NA |
Description
Multi select list parameters are not stored correctly and thus cannot be retrieved.
Explanation:
I have a custom bean which contains a multi select list as one of it's parameter:
private String[] systemAlarms;
The bean is provided as an array in the GUI. I can select the select the elemnts in it and they are shown as I expect:
Clicking on [...] shows up a dialog box where I can select the options. Assuming I have four values
[ ] val1 [ ] val2 [ ] val3 [ ] val4
and I select the first three values and click [OK] the values in the field 'systemAlarms' is shown as follows:
val1;val2;val3
which is fine. But when I click on [Okay] to save the bean array this is messed up: The properties file shows a value like
[Ljava.lang.String;@54cc4d
And if I reopen the test parameter (bean array) the value in the field 'systemAlarms' is also [Ljava.lang.String;@54cc4d
