[fixes #1997] try-with-resources where the thing you’re guarding is just a variable ref instead of a full decl (legal since JDK9) would break delombok

This commit is contained in:
Reinier Zwitserloot committed 2019-02-19 02:08:14 +01:00
1 parent 8479edb426
commit 3ac415254f
3 files changed
+33 -5

No files matched your search

@@ -0,0 +1,10 @@
//version 9:
import java.io.PrintWriter;
public class TryWithResourcesVarRef {
{
PrintWriter pw = new PrintWriter(System.out);
try (pw) {
pw.println();
}
}
}