mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-20 13:31:28 +07:00
testdata for IDEA-138696
This commit is contained in:
@@ -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 {}
|
||||
@@ -63,6 +63,10 @@ public class Java8RegressionTest extends LightDaemonAnalyzerTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testIDEA138696() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doTest() {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user