felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clement Escoffier (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (FELIX-2542) Annotations on methods parameters are not moved on public methods after manipulation
Date Sun, 22 Aug 2010 14:15:15 GMT

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

Clement Escoffier resolved FELIX-2542.
--------------------------------------

    Resolution: Fixed

Fixed in trunk.

Parameter Annotations were not moved to the interceptor method during the annotation processing.
This is now fixed.
As for method annotations, only annotation visible at runtime are moved, others are ignored.

> Annotations on methods parameters are not moved on public methods after manipulation
> ------------------------------------------------------------------------------------
>
>                 Key: FELIX-2542
>                 URL: https://issues.apache.org/jira/browse/FELIX-2542
>             Project: Felix
>          Issue Type: Bug
>          Components: iPOJO
>    Affects Versions: iPOJO-1.6.0
>         Environment: Win xp, java 1.6
>            Reporter: Nicolas Dumont
>            Assignee: Clement Escoffier
>            Priority: Minor
>             Fix For: iPOJO-1.8.0
>
>
> The iPojo byte code manipulation replace real public method with private one, and annotation
on methods are moved to the new public methods. But this behavior is not used for parameters
annotations.
> For exemple :
> public class MyClass {
>   @MyAnnotation
>   public void myMethod(@MyParameterAnnotation int param) {
>      //my code here
>  }
> }
> is transformed into:
> public class MyClass {
>   @MyAnnotation
>   public void myMethod(int param) {
>      // iPojo code here
>  }
>   private void _myMethod(@MyParameterAnnotation int param) {
>    // my code here
>  }
> It should have been transformed into:
> public class MyClass {
>   @MyAnnotation
>   public void myMethod(@MyParameterAnnotation int param) {
>      // iPojo code here
>  }
>   private void _myMethod(int param) {
>    // my code here
>  }

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


Mime
View raw message