Affected version
HEAD
Bug description
There are several UncheckedIOExceptions for issues that can definitely happen, and that are not handled where they should be. E.g.
protected Object eval(ScriptEngine engine, ScriptContext context) throws ScriptException {
try (FileReader reader = new FileReader(scriptFile)) {
return engine.eval(reader, context);
} catch (IOException ex) {
throw new UncheckedIOException(scriptFile + " caused:", ex);
}
}
This is risky and bug prone. Ideally these should be changed to IOException, but if API compatibility prevents that it looks like most could be replaced with a ScriptException instead.
Affected version
HEAD
Bug description
There are several UncheckedIOExceptions for issues that can definitely happen, and that are not handled where they should be. E.g.
This is risky and bug prone. Ideally these should be changed to IOException, but if API compatibility prevents that it looks like most could be replaced with a ScriptException instead.