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

Miguel González updated FELIX-3012:
-----------------------------------

          Component/s: iPOJO
          Description: 
Using iPOJO, i stumbled upon a problem involving one of my components. When I 
tried to instantiate it, the JVM threw an exception saying that there was some 
"duplicate name&signature". After countless hours of hopeless search, I found 
by chance that I had getters and setters misspelled: instead of 'getAttName' I 
had 'getattName', so I believe that the iPOJO class processing creates methods 
that matched my misspelled ones, which lead to this coincidence. After I fixed 
the method names, everything worked as expected.

I hope this info can be useful for anyone who has the same problem.
          Environment: Ubuntu Linux 2.6.32
    Affects Version/s: iPOJO-1.8.0
                       iPOJO-1.6.0

> "Duplicate name&signature" problem
> ----------------------------------
>
>                 Key: FELIX-3012
>                 URL: https://issues.apache.org/jira/browse/FELIX-3012
>             Project: Felix
>          Issue Type: Bug
>          Components: iPOJO
>    Affects Versions: iPOJO-1.6.0, iPOJO-1.8.0
>         Environment: Ubuntu Linux 2.6.32
>            Reporter: Miguel González
>
> Using iPOJO, i stumbled upon a problem involving one of my components. When I 
> tried to instantiate it, the JVM threw an exception saying that there was 
> some "duplicate name&signature". After countless hours of hopeless search, I 
> found by chance that I had getters and setters misspelled: instead of 
> 'getAttName' I had 'getattName', so I believe that the iPOJO class processing 
> creates methods that matched my misspelled ones, which lead to this 
> coincidence. After I fixed the method names, everything worked as expected.
> I hope this info can be useful for anyone who has the same problem.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to