sahvx655-wq opened a new pull request, #381: URL: https://github.com/apache/commons-validator/pull/381
This PR fixes incorrect serialization behavior in `ValidatorUtils.getValueAsString()` for `String[]` values. Previously, arrays were converted using the default `Object.toString()` implementation, resulting in non-readable JVM identity strings. When a `String[]` was passed to `getValueAsString()`, the output appeared as: text [Ljava.lang.String;@1a2b3c This occurs because Java arrays do not override `toString()`. Updated array handling to use: java java.util.Arrays.toString((String[]) value) This produces consistent and human-readable output: text [element1, element2, element3] -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
