miroir de
https://github.com/eclipse-aspectj/aspectj.git
synchronisé 2024-08-27 05:54:38 +02:00
19 lignes
535 B
Java
19 lignes
535 B
Java
|
|
|
|
abstract class AbstractClass {
|
|
public abstract void abstractMethod ();
|
|
}
|
|
|
|
public class AbstractMethodCall extends AbstractClass {
|
|
/** @testcase PR591 PUREJAVA compiler error expected when directly calling unimplemented abstract method using super */
|
|
public void abstractMethodCall () {
|
|
super.abstractMethod (); // expecting compiler error: cannot access directly
|
|
}
|
|
public void abstractMethod() {}
|
|
public static void main(String[] args) {
|
|
new AbstractMethodCall().abstractMethodCall();
|
|
}
|
|
}
|
|
|
|
|