Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] As aspect to update a middle of a method body

Hi Breaks,
as far as I can understand, no, it's not possible to change the middle
part of a method, cause it's not a join point so you cannot attach to it
in any way.


breaks wrote:
> Hi,
> I wasn't sure about this so I just wanted to check it out.
> I know it is possible for an aspect to update the beginning of method, end
> of the method and before and after anytime it is called. I was wondering is
> it possible for an aspect to update the middle of a method?
> Suppose Joe Bloggs has written a crazy method with 100 lines of code.
> I need to update around lines 50?
> I presume this can't be done.
> Thanks

Back to the top