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-697) Generation of a duplicated field when using generics
Date Tue, 09 Sep 2008 17:49:44 GMT

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

Clement Escoffier resolved FELIX-697.
-------------------------------------

    Resolution: Fixed

Fixed in the revision 693520.
I commit a patch and add the test case in my test suite. 
Loris, could you confirm the fix?

> Generation of a duplicated field when using generics
> ----------------------------------------------------
>
>                 Key: FELIX-697
>                 URL: https://issues.apache.org/jira/browse/FELIX-697
>             Project: Felix
>          Issue Type: Bug
>          Components: iPOJO
>    Affects Versions: iPOJO-0.8.0
>         Environment: Felix 1.0.4
>            Reporter: Loris Bouzonnet
>            Assignee: Clement Escoffier
>         Attachments: ipojo-testcase.zip
>
>
> Here an extract of my test case:
> In an abstract Class AbsI, I have:
> public abstract class AbsI<T extends Serializable> implements I {
> [...]
>     protected abstract T getName();
>     public String getPlip() {
>         return getName().toString();
>     }
> [...]
> }
> In a child A:
> public class A extends AbsI<String> {
>     protected String getName() {
>         return "a";
>     }
> }
> Generated code for A is:
> public class A extends AbsI<String>
> {
>   private InstanceManager __IM;
>   private boolean jdField___MgetName_of_type_Boolean;
>   private boolean jdField___MgetName_of_type_Boolean;
> [...]
> }
> => jdField___MgetName_of_type_Boolean is duplicated and cannot be loaded.

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