rvauradkar (9) [Avatar] Offline
#1
Ramnivas,
Thanks for the wonderful book.
Had a short question, being a newbie to this I hope you have patience for stupid questions. In the book you mention that one can weave in aspects for private methods. How does the aspect squeeze past the Java security model? Is there some way to enforce the security?
Thanks,
Raj Auradkar
ramnivas (171) [Avatar] Offline
#2
Re: Private method aspects
Thanks Raj.

I assume that by security you are focusing on interaction of privileged aspects with the access control mechanism. The AspectJ compiler can access private field/method in an implementation-specific way. For example, it may add a public method that wraps the accessed private method.

Please let me know if this answers your query or if you have additional questions.

-Ramnivas