Browse Source

134425: testcode

tags/V1_6_1rc1
aclement 16 years ago
parent
commit
26cff8dd6f
2 changed files with 22 additions and 0 deletions
  1. 8
    0
      tests/bugs161/pr134425/Base.java
  2. 14
    0
      tests/bugs161/pr134425/Derived.java

+ 8
- 0
tests/bugs161/pr134425/Base.java View File

@@ -0,0 +1,8 @@
package pkg;

public aspect Base {
public interface BaseBean {}
public String BaseBean.describe() {
return "Base holds "+super.toString();
}
}

+ 14
- 0
tests/bugs161/pr134425/Derived.java View File

@@ -0,0 +1,14 @@
package pkg;

import pkg.Base.BaseBean;

public aspect Derived {
public interface DerivedBean extends BaseBean {}

public String DerivedBean.describe() {
return "Derived state plus "+super.describe();
}
public static void main(String args[]) {
new DerivedBean() {}.describe();
}
}

Loading…
Cancel
Save