Can't seem to break in around advice [message #52255] |
Wed, 25 May 2005 11:20  |
Eclipse User |
|
|
|
In the following code, I set a breakpoint at the first line in the around advice. The advice gets executed, but the breakpoint never hits:
void around() : log4jLoggingInit() {
PropertyConfigurator.configureAndWatch("log4j.properties", 1000);
}
If I change the advice to invoke a method, and set the breakpoint on the first line of the method, the breakpoint /does/ get hit:
void around() : log4jLoggingInit() {
initLogging();
}
private void initLogging() {
PropertyConfigurator.configureAndWatch("log4j.properties", 1000);
}
Has anyone else experienced similar problems?
-barry
|
|
|
Re: Can't seem to break in around advice [message #52284 is a reply to message #52255] |
Wed, 25 May 2005 12:06   |
Eclipse User |
|
|
|
Originally posted by: mchapman.uk.ibm.com
Hi Barry,
Your around advice is being inlined. You can disable this optimization
under AspectJ Compiler > Advanced > No inline
Regards,
Matt.
On Wed, 25 May 2005 09:20:48 -0700, Barry Kaplan wrote:
> In the following code, I set a breakpoint at the first line in the
> around advice. The advice gets executed, but the breakpoint never hits:
>
> void around() : log4jLoggingInit() {
> PropertyConfigurator.configureAndWatch("log4j.properties",
> 1000);
> }
>
>
> If I change the advice to invoke a method, and set the breakpoint on the
> first line of the method, the breakpoint /does/ get hit:
>
> void around() : log4jLoggingInit() {
> initLogging();
> }
> private void initLogging() {
> PropertyConfigurator.configureAndWatch("log4j.properties",
> 1000);
> }
>
> Has anyone else experienced similar problems?
>
> -barry
|
|
|
|
Re: Can't seem to break in around advice [message #588396 is a reply to message #52255] |
Wed, 25 May 2005 12:06  |
Eclipse User |
|
|
|
Hi Barry,
Your around advice is being inlined. You can disable this optimization
under AspectJ Compiler > Advanced > No inline
Regards,
Matt.
On Wed, 25 May 2005 09:20:48 -0700, Barry Kaplan wrote:
> In the following code, I set a breakpoint at the first line in the
> around advice. The advice gets executed, but the breakpoint never hits:
>
> void around() : log4jLoggingInit() {
> PropertyConfigurator.configureAndWatch("log4j.properties",
> 1000);
> }
>
>
> If I change the advice to invoke a method, and set the breakpoint on the
> first line of the method, the breakpoint /does/ get hit:
>
> void around() : log4jLoggingInit() {
> initLogging();
> }
> private void initLogging() {
> PropertyConfigurator.configureAndWatch("log4j.properties",
> 1000);
> }
>
> Has anyone else experienced similar problems?
>
> -barry
|
|
|
|
Powered by
FUDForum. Page generated in 0.04192 seconds