RFR 8170113: jimage extract to readonly directory causes MissingResourceException
denis.kononenko at oracle.com
Mon Feb 6 10:27:38 UTC 2017
Could someone please review this very small fix.
The class JImageTask (src/jdk.jlink/share/classes/jdk/tools/jimage/JImageTask.java) has references to an info message by 'err.cannot.create.dir' key. Unfortunately the corresponding resource file (src/jdk.jlink/share/classes/jdk/tools/jimage/resources/jimage.properties) doesn't contain this key. This results in long not user friendly stacktraces in output when jimage cannot create a directory. The fix is very small, I added the missing definition into the resource file.
More information about the core-libs-dev