Can aspectj add methods to java.lang.String -
i've read articles of aspectj, know can enhance classes, attractive. i've stupid question can't find clear answer:
can aspectj add methods java.lang.string?
or similar question: if can't sources of classes, can enhance them aspectj?
no, can't friend.
i think looking type not exposed user
for further details please take @ the aspectj development environment guide #special cases
as says
the following classes not exposed ltw infrastructure regardless of aop.xml file(s) used
- all org.aspectj.* classes (and subpackages) - needed infrastructure itself
- all java.* , javax.* classes (and subpackages)
- all sun.reflect.* classes - jdk specific classes used when reflective calls occurs
Comments
Post a Comment