Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] disabling name mangling in private methods

Declaring your aspect as "privileged" allows it to see private
methods, in their human-readable form. Would that meet your needs?

dean

On 11/17/05, Shawn Shyh <sshyh@xxxxxxxxxxxx> wrote:
>
>
>
> Hey,
>
>
>
> I was wondering if anyone know of a way to get around method name mangling
> for private methods.
>
> I'd like to weave in a custom writeObject() method for handling java
> serialization into my target classes.
>
> Java requires the writeObject() method to be declared private, but
> unfortunately, the aspectJ compiler always mangles private method name
> (presumably to prevent name collisions).
>
>
>
> Is there a way to turn this mangling off or possibly customize it somehow?
>
>
>
> -Shawn
>
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
>


--
Dean Wampler
http://www.aspectprogramming.com
http://www.newaspects.com
http://www.contract4j.org


Back to the top