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

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

Elmehdi Damou created FELIX-3805:
------------------------------------

             Summary: 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

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

Posted by "Elmehdi Damou (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-3805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Elmehdi Damou closed FELIX-3805.
--------------------------------

    Resolution: Duplicate
    
> 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

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

Posted by "Guillaume Sauthier (JIRA)" <ji...@apache.org>.
    [ 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

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

Posted by "Elmehdi Damou (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-3805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13511242#comment-13511242 ] 

Elmehdi Damou commented on FELIX-3805:
--------------------------------------

I think it's the same think, I used the maven-ipojo-plugin 1.8.0. 
I change to the version 1.8.6. thank you
                
> 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