xmlgraphics-commons/jdk25.patch
2026-01-06 10:34:03 +01:00

12 lines
572 B
Diff

--- xmlgraphics-commons-2.11/src/main/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderRawJPEG.java
+++ xmlgraphics-commons-2.11/src/main/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderRawJPEG.java
@@ -228,7 +228,7 @@
if (padding != 0) {
try {
iccStream.write(new byte[padding]);
- } catch (IOException ioe) {
+ } catch (Exception ioe) {
throw new IOException("Error while aligning ICC stream: " + ioe.getMessage());
}
}