Compile time weaving is a technique which allows AOP aspects to be "woven in" at compile time mainly by modifying the compiled code (e.g. byte-code manipulation in Java).
Questions tagged [compile-time-weaving]
89 questions
4
votes
1 answer
TypeScript code weaving
Is there a way to do code weaving in TypeScript?
What I'm trying to do is inject a piece of code as the very first line of every function in my TypeScript app and I don't wont to do this manually (this manual approach is tedious and error prone).

Gigitsu
- 593
- 6
- 19
3
votes
1 answer
Spring with AspectJ compile-time weaving causing: java.lang.VerifyError: Illegal use of nonvirtual function call
I am trying to use Spring's @AspectJ compile-time weaving instead of and it is causing some errors.
First there are some warnings during the compilation phase:
[WARNING] can not resolve this member: x.y.z.Severity[]…

Yuval Rimar
- 1,055
- 12
- 22
3
votes
2 answers
@Configurable doesn't work for objects initialized in @PostConstruct methods
I'm using Spring with AspectJ via compile-time weaving to use @Configurable spring annotation for objects non-managed by container.
Here is an example @Configurable-annotated object:
@Configurable(autowire = Autowire.BY_TYPE)
public class…

ixi
- 441
- 5
- 10
3
votes
0 answers
Warnings when using aspectj in my Maven project
I’m trying to use aspect seaving in my Maven/Spring (3.2.11.RELEASE) project. I have this configured for my plugin …
org.codehaus.mojo
aspectj-maven-plugin
…

Dave
- 15,639
- 133
- 442
- 830
3
votes
1 answer
Compile time weaving with Cache Abstraction in Spring
Currently i am using cache abstraction using proxy. Problem with proxy is that internal method calls don't work . Now, I want to use the compile time weaving instead of proxy as internal method calls works it. I have searched on google, but i didn't…

cooldude
- 935
- 2
- 9
- 18
3
votes
2 answers
AspectJ compile-time weaving and Scala
Is it possible to have a Scala Maven project and weave AspectJ aspects at compile-time within the Scala classes?
I've been able to get load-time weaving to work but so far no success with compile-time.
The aspects are simply not woven into the Scala…

GuiSim
- 7,361
- 6
- 40
- 50
2
votes
1 answer
Spring 3 Compile Time Weaving Problems for Objects in jar dependency with @Configurable (using Maven)
Been googling and working on this for way too long now. Been over various stackoverflow posts as well, but still stumped on what's going on here.
First off, what I want:
I have a persistence jar that is used as dependency in my web project. Within…

Rick Reumann
- 383
- 1
- 3
- 10
2
votes
3 answers
Aspectj compile time weaving based transactions not working (JPA from a WebService call)
I'm trying to use aspectj with compile time weaving to support annotations like Spring's @Transactional and @Configurable. I'm using the org.springframework.orm.jpa.JpaTransactionManager transaction manager and what I see in the logs when I try to…

Mircea D.
- 331
- 4
- 14
2
votes
1 answer
Static Weaving for EclipseLink with Eclipse WTP
I've got a project running on Tomcat within Eclipse WTP that deploys with some JPA entities. I would like to enable ChangeTracking on these entities, but this requires enabling weaving. Since Tomcat doesn't allow for dynamic weaving, I need to do…

Philihp Busby
- 4,389
- 4
- 23
- 19
2
votes
2 answers
How to reference a Fody MethodDecorator in another project?
I'm trying to use the Fody MethodDecorator to log method entry/exit in multiple projects. I've created a project in visual studio and implemented the IMethodDecorator interface as described in the ReadMe.md in the Fody MethodDecorator project.
The…

FluffyBike
- 825
- 1
- 4
- 17
2
votes
2 answers
AspectJ cannot find .raw superclass
Background
A project uses Aspects for logging. The particulars:
Java 11
AspectJ 1.9.4 (runtime, tools, compiler, post-compile-weaving plugin)
Mockito Core 2.25.1
The build.gradle file resembles:
apply plugin:…

Dave Jarvis
- 30,436
- 41
- 178
- 315
2
votes
0 answers
Using aspectJ with Cucumber
I am trying to use aspectJ with cucumber project to add conditional statements with cucumber(you may think why.. but I am). It intercepts the cucumber step definitions that I have in my current project but I have dependency jars as well that I want…

MagicBeans
- 343
- 1
- 5
- 18
2
votes
0 answers
@Configurable not recognized in SpringBoot Application
I am trying to write a custom JPA-EntityListener for my spring boot app which is somehow application-context aware. while reading the docs to find out how to accomplish that I stumbled across the AuditingEntityListener that is shipped with…

gofrm
- 364
- 2
- 15
2
votes
1 answer
Ant target for compile-time code instrumentation with Spring aspects
I have developed a web application using Netbeans 6.7 and Ant. The webapp works, but I would like to refactor the code to use @Configurable Spring annotation for cleaner dependency injection.
I was able to get load-time weaving (LTW) of Spring…

alecswan
- 499
- 1
- 6
- 12
2
votes
0 answers
eclipseLink 2.5.1 static weaving NoSuchMethodError
I am using EclipseLink 2.5.1 on Tomcat 8. Tried to static weave jars, but got error at run time.
java.lang.NoSuchMethodError: mypackage.Employee._persistence_checkFetchedForSet(Ljava/lang/String;)V
at…

Dave
- 487
- 1
- 6
- 19