You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brian Kramer (JIRA)" <ji...@codehaus.org> on 2010/05/04 15:15:14 UTC

[jira] Commented: (MSHADE-79) Annotations are not shaded

    [ http://jira.codehaus.org/browse/MSHADE-79?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=219856#action_219856 ] 

Brian Kramer commented on MSHADE-79:
------------------------------------

Filed a bug with asm (#314982).  http://forge.ow2.org/tracker/index.php?func=detail&aid=314982&group_id=23&atid=100023

> Annotations are not shaded
> --------------------------
>
>                 Key: MSHADE-79
>                 URL: http://jira.codehaus.org/browse/MSHADE-79
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.3.2
>            Reporter: Brian Kramer
>         Attachments: annotated.zip, annotation_remap.diff
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira