added test case and delombok result for issue 520 (val in try-with-resources). WARNING: I havent added ecj test output yet because so far there is no ecj7 available for testing with our buildscripts. I should fix that first and then Ill sort this out.

This commit is contained in:
Reinier Zwitserloot
2013-05-24 01:02:13 +02:00
parent 2c53dc7a65
commit b3b91a0ddd
2 changed files with 22 additions and 0 deletions
@@ -0,0 +1,12 @@
//version 7
import lombok.val;
import java.io.IOException;
public class ValInTryWithResources {
public void whyTryInsteadOfCleanup() throws IOException {
try (val in = getClass().getResourceAsStream("ValInTryWithResources.class")) {
val i = in;
val j = in.read();
}
}
}