mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
use mockJdk18 by default in LightCodeInsightTestCase; remove dependency on swing/net classes in some tests
This commit is contained in:
+8
-4
@@ -1,13 +1,17 @@
|
||||
// throws conflicts on overriding/ override final
|
||||
import java.io.*;
|
||||
import java.net.*;
|
||||
|
||||
public class a extends c3 {
|
||||
public void f() throws <error descr="'f()' in 'a' clashes with 'f()' in 'c3'; overridden method does not throw 'java.lang.Exception'">Exception</error> {
|
||||
}
|
||||
}
|
||||
class SocketException extends IOException {
|
||||
}
|
||||
class ConnectException extends SocketException {
|
||||
}
|
||||
|
||||
interface i {
|
||||
void f() throws java.net.SocketException;
|
||||
void f() throws SocketException;
|
||||
}
|
||||
class c2 implements i {
|
||||
public void f() throws <error descr="'f()' in 'c2' clashes with 'f()' in 'i'; overridden method does not throw 'java.io.IOException'">java.io.IOException</error> {}
|
||||
@@ -17,11 +21,11 @@ class c2i implements i {
|
||||
}
|
||||
|
||||
class c3 implements i {
|
||||
public void f() throws java.net.ConnectException {}
|
||||
public void f() throws ConnectException {}
|
||||
}
|
||||
|
||||
class c4 extends c3 {
|
||||
public void f() throws java.net.ConnectException {}
|
||||
public void f() throws ConnectException {}
|
||||
}
|
||||
|
||||
interface MethodsFromObject {
|
||||
|
||||
Reference in New Issue
Block a user