You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a java agent we are developing we are trying to relocate the aspectjrt and aspectjweaver packages but it looks impossible because aspectj weaver uses string constants to test if a class is an aspect. something like that: public final static UnresolvedType ASPECT_ANNOTATION = UnresolvedType.forSignature("Lorg/aspectj/lang/annotation/Aspect;"
I've tried various suggestions like exclusion of some packages but nothing worked.
The aspectj project lead suggested that "It seems reasonably robust to modify Lorg/aspectj/lang prefixed strings to Lshadow/org/aspectj/lang"
My question is if that seems reasonable to implements something like that as part of shadow plugin?
or what would be the correct way to hook into the plugin and implement that as a gradle task?
Thank you
The text was updated successfully, but these errors were encountered:
Goooler
changed the title
relocating aspectj packages - modifying string constants as part of relocating packages
Modifying string constants as part of relocating packages
Mar 3, 2025
Shadow Version
2.0.2
Gradle Version
4.3
In a java agent we are developing we are trying to relocate the aspectjrt and aspectjweaver packages but it looks impossible because aspectj weaver uses string constants to test if a class is an aspect. something like that:
public final static UnresolvedType ASPECT_ANNOTATION = UnresolvedType.forSignature("Lorg/aspectj/lang/annotation/Aspect;"
I've tried various suggestions like exclusion of some packages but nothing worked.
The aspectj project lead suggested that "It seems reasonably robust to modify Lorg/aspectj/lang prefixed strings to Lshadow/org/aspectj/lang"
My question is if that seems reasonable to implements something like that as part of shadow plugin?
or what would be the correct way to hook into the plugin and implement that as a gradle task?
Thank you
The text was updated successfully, but these errors were encountered: