Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] How do you insert a protected finalize method ?

You ought to be able to work around this issue by just making finalize
public. There is a tracking issue for allowing protected inter-type
declarations in AspectJ: see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=39457. I believe that
protected would mean that the member would be accessible to subaspects of
the declaring aspect, not to subclasses of the type on which the member is
declared. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=170635 for a
request for protected ITD that is protected with respect to the declared on
class, and why that's not supported. But in general, you ought to be able to
make public ITD's that override a protected method to work with any
framework or template methods...

-----Original Message-----
From: aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Robert S. Baker
Sent: Monday, July 16, 2007 1:49 PM
To: aspectj-users@xxxxxxxxxxx
Subject: [aspectj-users] How do you insert a protected finalize method ?

I want to insert a protected finalize method into class to assist in
counting object instances, however, I keep getting "error protected
inter-type declarations are not allowed". I tried using "privileged",
with the same result.

After googling and searching the archives, I still have not come up with
an answer.

any ideas?





_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users



Back to the top