Files
lombok/test/transform/resource/before/ValInTryWithResources.java
T
Reinier Zwitserloot 7079271802 thoroughly updated the launch targets for testing lombok in eclipse;
they should now be able to handle running JDK8 etc tests.

CAREFUL: You MUST name your JDK8 'JavaSE-1.8' or it won't work.

Also added a basic test for JDK8 features.
2014-05-04 10:33:55 +02:00

12 lines
284 B
Java

//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();
}
}
}