changeset 23037:5d2dbc7106e9

8035106: Typo in java.time.format.Parsed error message Reviewed-by: lancea
author rriggs
date Fri, 28 Feb 2014 17:01:12 -0500
parents b711f9772be8
children bb8b3b23af3a
files jdk/src/share/classes/java/time/format/Parsed.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/share/classes/java/time/format/Parsed.java	Fri Feb 28 13:36:46 2014 -0500
+++ b/jdk/src/share/classes/java/time/format/Parsed.java	Fri Feb 28 17:01:12 2014 -0500
@@ -289,7 +289,7 @@
                             changedCount++;
                             continue outer;  // have to restart to avoid concurrent modification
                         }
-                        throw new DateTimeException("Method resolveFields() can only return ChronoZonedDateTime," +
+                        throw new DateTimeException("Method resolve() can only return ChronoZonedDateTime, " +
                                 "ChronoLocalDateTime, ChronoLocalDate or LocalTime");
                     } else if (fieldValues.containsKey(targetField) == false) {
                         changedCount++;