jdk
9179a88e - 8160327: wrap LocaleDateTime.parse in try/catch

Comment changes are shownComment changes are hidden
Commit
224 days ago
8160327: wrap LocaleDateTime.parse in try/catch I've observed a few cases where the time is not formatted correctly. Previously: the way the parsing logic was positioned meant the ExifMarkerSegment threw an exception. (Meaning: we lost the ability to parse a thumbnail, all because the timestamp had a formatting error.) Now: we just leave the timestamp empty if we can't parse it.
Author
Parents
  • src/java.desktop/share/classes/com/sun/imageio/plugins/jpeg
    • File
      ExifMarkerSegment.java
  • test/jdk/javax/imageio/plugins/jpeg
    • File
      JpegExifThumbnailTest.java
    • File
      jdk_8160327-bad-timestamp.jpg
    • File
      jdk_8160327-zeroed-timestamp.jpg