martin-g commented on a change in pull request #356: Wicket 6662
URL: https://github.com/apache/wicket/pull/356#discussion_r281527093
##########
File path:
wicket-util/src/main/java/org/apache/wicket/util/string/StringValue.java
##########
@@ -548,7 +552,14 @@ public final Double toDoubleObject() throws
StringValueConversionException
*/
public final Duration toDuration() throws StringValueConversionException
{
- return Duration.valueOf(text, locale);
+ try
+ {
+ return Duration.parse(text);
+ }
+ catch (Exception e)
+ {
+ throw new StringValueConversionException("xxx", e);
Review comment:
`xxx`
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services