[Bug 22] New: abc makes after advice parameters final

From: <abc-bugs@comlab.ox.ac.uk>
Date: Thu Sep 23 2004 - 18:48:38 BST

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

           Summary: abc makes after advice parameters final
           Product: abc
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: AspectJ compiler
        AssignedTo: abc-bugs@comlab.ox.ac.uk
        ReportedBy: olhotak@sable.mcgill.ca

For the following aspect, abc gives the following error:

~ $ cat X.java
public aspect X {
    after() returning (Object value): set(* *.*) {
        value = null;
    }
}

~ $ abc X.java
X.java:3: Final local variable "value" cannot be assigned to in an inner
    class.
        value = null;
        ^----------^

1 error.
Compiler failed.

~ $

abc compiles it without error.

Code along these lines appears in the atrack benchmark, causing it not to compile.

Do we really want to make this an error in abc? This bug created for discussing it.

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
Received on Thu Sep 23 18:50:37 2004

This archive was generated by hypermail 2.1.8 : Thu Sep 23 2004 - 18:50:02 BST