Skip to content

Commit e05600f

Browse files
author
Cyril Antony
committed
Catch IllegalArgumentException after date parsing
1 parent 7599a58 commit e05600f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

schema/src/main/java/org/exolab/castor/xml/schema/util/DatatypeHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ public static String guessType(String value) {
169169
Date.parseDate(value);
170170
return DATE_TYPE;
171171
} catch (ParseException px) {
172+
} catch (IllegalArgumentException ex) {
172173
}
173174

174175
// -- check for time

0 commit comments

Comments
 (0)