Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] How to delete a method

You can't delete method, but advise it to bypass the original code:

void around() : execution(* MyClass.finalize()) {
  ... no proceed() here
}

-Ramnivas

On Mon, Mar 16, 2009 at 9:16 PM,  <GPatel@xxxxxxxx> wrote:
>
> Hi
>
> I am working with a third party jar that seems to have classes that override
> the finalize() method, which seems to be causing GC issues.
>
> Is it possible to delete the finalize() methods using AspectJ?
>
> Thanks
> G. Patel
>
> ________________________________
>
> The information contained in this communication (including any attachments
> hereto) is confidential and is intended solely for the personal and
> confidential use of the individual or entity to whom it is addressed. If the
> reader of this message is not the intended recipient or an agent responsible
> for delivering it to the intended recipient, you are hereby notified that
> you have received this communication in error and that any review,
> dissemination, copying, or unauthorized use of this information, or the
> taking of any action in reliance on the contents of this information is
> strictly prohibited. If you have received this communication in error,
> please notify us immediately by e-mail, and delete the original message.
> Thank you
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>


Back to the top