atteo / classindex

Index classes, do not scan them!
Apache License 2.0
263 stars 43 forks source link

Shading relocations are ignored in ClassIndexTransformer #64

Closed cpiotr closed 3 years ago

cpiotr commented 4 years ago

Index files

When annotations annotated with @IndexAnnotated are relocated during shading, the index file created in META-INF/annotations does not reflect the relocated package.

Expected

META-INF
└── annotations
    └── shaded.org.atteo.tobemoved.CustomAnnotation

Actual

META-INF
└── annotations
    └── org.atteo.tobemoved.CustomAnnotation

Index file contents

Index file with classes annotated with annotations using @IndexAnnotated does not reflect relocations.

Expected

cat ./META-INF/annotations/org.atteo.tobemoved.CustomAnnotation
shaded.org.atteo.CustomComponent

Actual

cat ./META-INF/annotations/org.atteo.tobemoved.CustomAnnotation
org.atteo.tobemoved.CustomComponent