Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] getThis() caused stackoverflow


>>        /** Logger named "ApplicationTracer" to log tracing data */
>>        private Logger logger = LoggingFactory.getLogger("ApplicationTracer");

well, it depends on configuration which logging implementation is used... in this case it is log4j...

i thought that the pointcut

>>        /**
>>         * Pointcut to match the scope in form of packages for the advise.
>>         */
>>        pointcut traceClasses() :
>>                within(com.namics.common..*)
>>                && !within(com.namics.common.log*..*)
>>                && !within(com.namics.common.aop..*);

will reduce the scope correctly (only within com.namics.common.* but not ...)

are static mehtod that bad for getThis()?? i mean produce a stackoverflow...?

kind regards,
sandro



Matthew Webster <matthew_webster@xxxxxxxxxx>
Sent by: aspectj-users-admin@xxxxxxxxxxx

18.01.2005 10:43

Please respond to
aspectj-users@xxxxxxxxxxx

To
aspectj-users@xxxxxxxxxxx
cc
Subject
Re: [aspectj-users] getThis() caused stackoverflow









Sandro,

Can I ask what logging implementation you are using? Also does your program
have static methods? In which case getThis() will return null. You may want
to check this or code separate advice for static methods.

Matthew Webster
AOSD Project
Java Technology Centre, MP146
IBM Hursley Park, Winchester,  SO21 2JN, England
Telephone: +44 196 2816139 (external) 246139 (internal)
Email: Matthew Webster/UK/IBM @ IBMGB, matthew_webster@xxxxxxxxxx
http://w3.hursley.ibm.com/~websterm/

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users


Back to the top