mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-14 14:11:27 +02:00
13 lines
388 B
Java
13 lines
388 B
Java
public class B extends A {
|
|
|
|
public static void main(String[] args) {
|
|
B b = new B();
|
|
if (b.getClass().getInterfaces().length>0) {
|
|
throw new RuntimeException("B should not implement any interfaces: "+b.getClass().getInterfaces()[0].toString());
|
|
}
|
|
if (!(b instanceof java.io.Serializable)) {
|
|
throw new RuntimeException("B should be serializable! Inherited from A");
|
|
}
|
|
}
|
|
}
|