This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
With the code below, I'm unable to hit Alt+Enter & be able to select the "Add throws clause" option to automatically add the possible IOException to the throws clause. import java.io.InputStreamReader; import java.io.Reader; import static java.nio.charset.StandardCharsets.UTF_8; import javax.script.ScriptEngineManager; import javax.script.ScriptException; public class Nashorn { public static void main(String[] args) throws ScriptException { try(Reader in = new InputStreamReader(Nashorn.class.getResourceAsStream("nashorn.js"), UTF_8)) { new ScriptEngineManager().getEngineByName("nashorn").eval(in); } } }
Fixed in jet-main#d4d51ea9cfd7
Integrated into 'main-silver', will be available in build *201504230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/d4d51ea9cfd7 User: Svata Dedic <sdedic@netbeans.org> Log: #250607: Added support for exceptions from implicit close() method