Using the -inpath option and passing the JRE library (rt.jar on windows) as input will allow you to weave those types. Use -outjar to produce a new version of the jar then ensure your JVM runs with the new version on the bootclasspath - ahead of the default version.
Andy 2010/4/20 ekinrf <[email protected]>: > Sorry, it was my fault, they work. However when I tried to weave into the > Object type (to change the structure of Object) using inter-type > declaration, aspectJ told me that it was not exposed to the weaver. Is there > a way to weave into it? > Thanks, fang. > > > 在2010-04-21 06:41:16,"Ramnivas Laddad" <[email protected]> 写道: > > Those pointcuts look fine. Can you show the code (call site) where you > expected a match? > -Ramnivas > > 2010/4/20 ekinrf <[email protected]> >> >> Hi everyone, >> I was wondering if we could use AspectJ to match a Java build-in type, say >> String or Object. I tried pointcut like call(*.new(..)) and call(* >> Object.*(..)), but they didn't work. Anyone got a hint? >> Regards with thanks, >> Fang >> >> >> _______________________________________________ >> aspectj-users mailing list >> [email protected] >> https://dev.eclipse.org/mailman/listinfo/aspectj-users >> > > > > > _______________________________________________ > aspectj-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/aspectj-users > > _______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
