A Properties
object can hold Object
s, not just String
s. That tends to be forgotten because they’re overwhelmingly used to load .properties files, and so often will only contain String
s. The documentation indicates that calling bundle.getStringArray(key)
is equivalent to calling (String[]) bundle.getObject(key)
. That’s the problem: the value isn’t a String[]
, it’s a String
.
I’d suggest storing it in comma-delimited format and calling split()
on the value.