question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Aspect update only does not result in weave

See original GitHub issue

Hi,

Thanks for the great plugin! I really like working with it.

I have a question though. When I only make some changes to an Aspect *.aj, then the changes don’t get woven when I rebuild my app. The transformClassesWithAspectj* task doesn’t get executed because it is marked UP-TO-DATE.

My guess would be that this is because the transformClassesWithAspectj* task has Java class files defined as an input. Since no Java source changed, no new Java class files were generated, as a result the transformClassesWithAspectj* task is marked UP-TO-DATE and skipped.

Is this correct? If so, what do you think is the fastest way to make sure the Aspect changes are applied? Running clean before each assembleDebug|Release run works, but makes the process quite slow.

Cheers,

Wijnand

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Archinamoncommented, Apr 11, 2017

That seems we need reopen this. Thank’s for your feedback!

0reactions
wjwarrencommented, Apr 11, 2017

Hi,

Sorry for the super late reply, I’m afraid though it’s not working yet.

When I only modify an Aspect in my project, I do see the “AspectJ sources compilation” output on the console, but not the output from “Augmentation with AspectJ transformer”.

I’m using v 3.0.0 with weaveInfo true.

Cheers,

Wijnand

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why doesn't AspectJ compile-time weaving of Spring's ...
Update 3: It seems AspectJ's Eclipse plug-in breaks Eclipse's ability to correctly Publish to Tomcat. Only by removing the AspectJ capability on ...
Read more >
7. Aspect Oriented Programming with Spring
Spring AOP, like other pure Java AOP frameworks, performs weaving at runtime. Types of advice: Before advice: Advice that executes before a join...
Read more >
[aspects] Enable/disable weaving service on a per-bundle basis
The weaving service attempts to weaving *all* bundles as they are loaded. However, most bundles do not have any aspects, nor are they...
Read more >
Aspectlib-1.4.2 » Reference »
aspectlib.weave, Send a message to a recipient. aspectlib.Rollback, When called, rollbacks all the patches and changes the weave() has done.
Read more >
Spring Boot Load-Time Weaving Example with AspectJ - GitHub
THe load-time weaving is useful when aspects are required at certain times but not all the times. For example, monitoring application performance or ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found