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.
Consider this code: --- package pkgtry.test; import java.io.FileInputStream; public class TryTest { public static void main(String[] args) { try (in = new FileInputStream("")) { } } } --- There is no fix that would add a type before the "in", to produce something like: try (FileInputStream in = new FileInputStream("")) {
Integrated into 'main-silver', will be available in build *201609250002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/c6cb9bd4950e User: Jan Lahoda <jlahoda@netbeans.org> Log: #268182 - adding Create resource fix for undefined resources in try-with-resources.