[
https://jira.codehaus.org/browse/MSHADE-92?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Greg Wittel updated MSHADE-92:
------------------------------
Attachment: test.tar.gz
Attached.
It looks like the issue is resolved with the v1.5 plugin (at least in my test).
The attached test uses the 1.4 plugin per original bug.
If you do:
$ mvn package
And decompile the shaded Item.class (http://http://java.decompiler.free.fr/)
you'll see the 'import' statements look like:
{code:java}
import org.codehaus.jackson.annotate.JsonProperty;
import shade.org.codehaus.jackson.annotate.JsonCreator;
{code}
When both classes should have been relocated to the 'shade' namespace.
> Annotated Method Parameters Not Shaded
> --------------------------------------
>
> Key: MSHADE-92
> URL: https://jira.codehaus.org/browse/MSHADE-92
> Project: Maven 2.x Shade Plugin
> Issue Type: Bug
> Affects Versions: 1.4
> Environment: JDK 1.6.0r21
> Reporter: Greg Wittel
> Labels: moreinfo
> Attachments: test.tar.gz
>
>
> When shading a function or constructor like
> {code:java}@JsonCreator
> public MyClass(@JsonProperty("blah") String blah) {
> }{code}
> The @JsonProperty annotation is not shaded. I decompiled the resulting
> .class file and you see '@JsonCreator' is properly shaded, while
> @JsonProperty is not. This is probably related to MSHADE-79.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira