summaryrefslogtreecommitdiffstats
path: root/tests/bugs154/pr86818/One.java
blob: 18113d5f18e83c33ff12ba26761ea0da89fc868d (plain)
1
2
3
4
5
6
7
8
9
10
11
// Should work fine, One gets Serializable
public class One {
  public void m() {}
  public static void main(String []argv) {
   if (!(new One() instanceof java.io.Serializable)) System.err.println("declare parents failed");
  }
}

aspect X {
  declare parents: hasmethod(public void m()) implements java.io.Serializable;
}