diff --git a/Date-and-Time-Formatting-with-JDK-20-and-higher.md b/Date-and-Time-Formatting-with-JDK-20-and-higher.md index 0ba9eb2..33f6197 100644 --- a/Date-and-Time-Formatting-with-JDK-20-and-higher.md +++ b/Date-and-Time-Formatting-with-JDK-20-and-higher.md @@ -60,6 +60,8 @@ pubic static DateTimeFormatter createLenientDateTimeFormatter( } ``` +Please note, however, that lenient parsing in `DateTimeFormatter` instances and especially in `SimpleDateFormat` may be more _lenient_ that you need or desire. For example, you may find that parsing succeeds for input which is technically invalid, such as `Feb 29` for a non-leap-year. In light of that, be cautious when configuring lenient parsing for `SimpleDateFormat` and `DateTimeFormatter`, and be sure to verify that your application continues to work properly. + ## Resources - https://openjdk.org/jeps/252