[ 
https://issues.apache.org/jira/browse/FELIX-739?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Work on FELIX-739 started by Clement Escoffier.

> iPojo and annotations support when manipulating
> -----------------------------------------------
>
>                 Key: FELIX-739
>                 URL: https://issues.apache.org/jira/browse/FELIX-739
>             Project: Felix
>          Issue Type: Bug
>          Components: iPOJO
>    Affects Versions: iPOJO-0.8.0
>         Environment: Java 6 / Windows XP
>            Reporter: David GAY
>            Assignee: Clement Escoffier
>
> The iPojo byte code manipulation replace real public method with private one.
> For exemple :
> public class MyClass {
>   public void myMethod() {
>      //my code here
>  }
> }
> is transformed into :
> public class MyClass {
>   public void myMethod() {
>      // iPojo code here
>  }
>  private void _myMethod() {
>    // my code here
>  }
> }
> There is no problem here. But if I have annotations on the myMethod(), there 
> are moved also to the private one,
> for exemple :
> public class MyClass {
>   @MyAnnotation
>   public void myMethod() {
>      //my code here
>  }
> }
> is transformed into :
> public class MyClass {
>   public void myMethod() {
>      // iPojo code here
>  }
>  @MyAnnotation
>  private void _myMethod() {
>    // my code here
>  }
> }
> I think that method annotations (other than iPojo ones) should stay on the 
> public one to have a correct behavior.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to