Files
Tagir Valeev 2350d69472 [java-highlighting] JavaCompilationErrorBundle.properties proofreading (DOC-34381)
GitOrigin-RevId: 05bdca159a63027ea0d1e3d767d4adb9b258f47e
2025-02-14 12:45:24 +00:00

17 lines
422 B
Java

abstract public class a1 {
<error descr="Abstract methods cannot have a body">abstract void f()</error> {}
<error descr="Native methods cannot have a body">native void ff()</error> {}
void f2() {
new ii() {
public int iif(int i) {
return 0;
}
};
}
}
interface ii {
<error descr="Interface abstract methods cannot have a body">int iif(int i) throws Exception</error> { return 2; }
}