Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.3.2
-
Fix Version/s: 1.3.3
-
Labels:None
-
Testcase included:yes
-
Number of attachments :
Description
We have some classes that are annotated in order to find certain functionality and activate it. Those classes, as well as the annotations, are included in the resulting jar. Both the annotation and the annotated classes have been relocated, but the annotation on the annotated class still refers to non-relocated annotation class.
The attached project demonstrates the issue.
This works (exit status 0):
java -classpath annotated-0.0.1-SNAPSHOT.jar test.annotation.annotated.App
This fails (exit status 1):
java -classpath annotated-0.0.1-SNAPSHOT-shaded.jar shaded.test.annotation.annotated.App
Diff for a workaround to what is apparently a bug in objecteb asm