You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Guillaume Sauthier (JIRA)" <ji...@apache.org> on 2012/12/05 23:01:58 UTC

[jira] [Commented] (FELIX-3805) Manipulator generate a duplicated method signature

    [ https://issues.apache.org/jira/browse/FELIX-3805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13510825#comment-13510825 ] 

Guillaume Sauthier commented on FELIX-3805:
-------------------------------------------

isn't it a duplicate of FELIX-3012 ?
What is the manipulator version you're using ?
                
> Manipulator generate a duplicated method signature
> --------------------------------------------------
>
>                 Key: FELIX-3805
>                 URL: https://issues.apache.org/jira/browse/FELIX-3805
>             Project: Felix
>          Issue Type: Bug
>          Components: iPOJO
>    Affects Versions: maven-ipojo-plugin-1.8.2
>            Reporter: Elmehdi Damou
>
> To reproduce the error :
> Declare a field in a component classname starting with capital letter ex :
> private String UID;
> Then create getter and setter for this field just like this :
> public void setUID(String uID) {
> 		UID = uID;
> 	}
> public String getUID() {
> 		return UID;
> 	}
> after the ipojo plugin manipulation, you will have methods with the same signature in the manipulated class :
>   public void setUID(java.lang.String s) { /* compiled code */ }
>   public java.lang.String getUID() { /* compiled code */ }
>   java.lang.String __getUID() { /* compiled code */ }
>     
>   void __setUID(java.lang.String s) { /* compiled code */ }
>    
>   private java.lang.String __getUID() { /* compiled code */ }
>     
>   private void __setUID(java.lang.String uID) { /* compiled code */ }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira