testdata for IDEA-138696

This commit is contained in:
Anna Kozlova
2015-04-02 17:26:37 +02:00
parent c08649b355
commit 3b40026df9
2 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
import java.io.IOException;
class CommandTest {
public URL someFunction(URI uri) {
return unchecked(uri::toURL);
}
public interface UncheckedRun<T> {
public T run() throws Throwable;
}
public static <T> T unchecked(UncheckedRun<T> run) {
try {
return run.run();
} catch (Throwable throwable) {
throw new AssertionError();
}
}
}
abstract class URI {
abstract URL toURL() throws IOException;
}
class URL {}

View File

@@ -63,6 +63,10 @@ public class Java8RegressionTest extends LightDaemonAnalyzerTestCase {
doTest();
}
public void testIDEA138696() throws Exception {
doTest();
}
private void doTest() {
doTest(false);
}