mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
convert to instance/move instance: support default methods in interfaces for java 8 (IDEA-154833)
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
interface I {
|
||||
default void method(int i) {
|
||||
System.out.println("i = " + i + ", intf = " + this);
|
||||
}
|
||||
}
|
||||
|
||||
interface J extends I {
|
||||
}
|
||||
|
||||
class IImpl implements I {
|
||||
}
|
||||
|
||||
class JImpl implements J {
|
||||
}
|
||||
|
||||
class X {
|
||||
|
||||
{
|
||||
J j = new JImpl();
|
||||
j.method(0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user