You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Driver.java 542B

123456789101112131415161718192021222324
  1. // PUREJAVA: Corrrect supercall lookup for method().name()
  2. import org.aspectj.testing.Tester;
  3. public class Driver {
  4. private Foo foo = new Foo();
  5. public static void main(String[] args) { test(); }
  6. public Foo getFoo() { return foo; }
  7. public String bar() {
  8. return getFoo().bar();
  9. }
  10. public static void test() {
  11. Tester.checkEqual(new Driver().bar(), "Foo", "getFoo().bar()");
  12. }
  13. }
  14. class Foo {
  15. public String bar() {
  16. return "Foo";
  17. }
  18. }