--- old/src/java.desktop/share/classes/javax/imageio/ImageWriter.java Tue Mar 8 21:59:25 2016 +++ new/src/java.desktop/share/classes/javax/imageio/ImageWriter.java Tue Mar 8 21:59:25 2016 @@ -1963,7 +1963,7 @@ try { bundle = ResourceBundle.getBundle(baseName, locale, this.getClass().getModule()); } catch (MissingResourceException mre) { - throw new IllegalArgumentException("Bundle not found!"); + throw new IllegalArgumentException("Bundle not found!", mre); } String warning = null; @@ -1970,9 +1970,9 @@ try { warning = bundle.getString(keyword); } catch (ClassCastException cce) { - throw new IllegalArgumentException("Resource is not a String!"); + throw new IllegalArgumentException("Resource is not a String!", cce); } catch (MissingResourceException mre) { - throw new IllegalArgumentException("Resource is missing!"); + throw new IllegalArgumentException("Resource is missing!", mre); } listener.warningOccurred(this, imageIndex, warning);