[Bug 80] New: A static method may not override/zap an instance method.

From: <abc-bugs@comlab.ox.ac.uk>
Date: Thu Jan 04 2007 - 12:22:21 GMT

http://abc.comlab.ox.ac.uk/cgi-bin/bugzilla/show_bug.cgi?id=80

           Summary: A static method may not override/zap an instance method.
           Product: abc
           Version: 1.2.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: AspectJ compiler
        AssignedTo: abc-bugs@comlab.ox.ac.uk
        ReportedBy: torbjorn@comlab.ox.ac.uk

The following example should result in a compile-time error, since the static
method in A is overridden/zapped by an instance method in B. The same problem
applies to overriding/zapping caused by "declare precedence".

abstract aspect A {
  static void X.m() { }
}
aspect B extends A {
  void X.m() { }
}
class X { }

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
Received on Thu Jan 04 12:22:24 2007

This archive was generated by hypermail 2.1.8 : Tue Mar 06 2007 - 16:13:50 GMT