Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » Can't seem to break in around advice
Can't seem to break in around advice [message #52255] Wed, 25 May 2005 15:20 Go to next message
Barry Kaplan is currently offline Barry KaplanFriend
Messages: 230
Registered: July 2009
Senior Member
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 16:06 Go to previous messageGo to next message
Eclipse UserFriend
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 #52345 is a reply to message #52284] Wed, 25 May 2005 16:44 Go to previous message
Barry Kaplan is currently offline Barry KaplanFriend
Messages: 230
Registered: July 2009
Senior Member
Matt Chapman wrote:
> Hi Barry,
>
> Your around advice is being inlined. You can disable this optimization
> under AspectJ Compiler > Advanced > No inline

Of course. Thanks!

-barry
Re: Can't seem to break in around advice [message #588396 is a reply to message #52255] Wed, 25 May 2005 16:06 Go to previous message
Matt Chapman is currently offline Matt ChapmanFriend
Messages: 429
Registered: July 2009
Senior Member
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 #588415 is a reply to message #52284] Wed, 25 May 2005 16:44 Go to previous message
Barry Kaplan is currently offline Barry KaplanFriend
Messages: 230
Registered: July 2009
Senior Member
Matt Chapman wrote:
> Hi Barry,
>
> Your around advice is being inlined. You can disable this optimization
> under AspectJ Compiler > Advanced > No inline

Of course. Thanks!

-barry
Previous Topic:AJDT development build for Eclipse 3.1M7
Next Topic:Working with AJEER
Goto Forum:
  


Current Time: Sat Apr 27 04:20:44 GMT 2024

Powered by FUDForum. Page generated in 0.03054 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top