aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core/testdata/binaryParents/TestA/B.java
blob: 51211051ef3120cfab0f8b1c4290df09d260dbfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
public class B extends Z {
	
	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");
		}
	}
}