How to delete a method

View: New views
2 Messages — Rating Filter:   Alert me  

How to delete a method

by GPatel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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@...
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Re: How to delete a method

by Ramnivas Laddad :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...> 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@...
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
_______________________________________________
aspectj-users mailing list
aspectj-users@...
https://dev.eclipse.org/mailman/listinfo/aspectj-users