You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Richard S. Hall (JIRA)" <ji...@apache.org> on 2010/02/03 20:55:27 UTC

[jira] Created: (FELIX-2041) Look into using generics in framework code

Look into using generics in framework code
------------------------------------------

                 Key: FELIX-2041
                 URL: https://issues.apache.org/jira/browse/FELIX-2041
             Project: Felix
          Issue Type: Improvement
          Components: Framework
    Affects Versions: felix-2.0.3
            Reporter: Richard S. Hall
            Assignee: Richard S. Hall
             Fix For: felix-3.0.0


Currently, the framework doesn't use generics and often adopts simple data structures based on arrays. At the time, this was done to keep things simple and avoid unnecessary class creation. Perhaps it is time to move beyond this thinking and more liberally use collection classes with generic. The OSGi Alliance is looking into support generics via "-target jsr14", so maybe this approach could be leveraged internally by the framework for now until the entire spec moves to Java 5.

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


[jira] Closed: (FELIX-2041) Look into using generics in framework code

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

Richard S. Hall closed FELIX-2041.
----------------------------------

    Resolution: Fixed

Framework code use generics, but targets jsr14 so the resulting byte code runs on old JVMs. Looks good enough to close this issue.

> Look into using generics in framework code
> ------------------------------------------
>
>                 Key: FELIX-2041
>                 URL: https://issues.apache.org/jira/browse/FELIX-2041
>             Project: Felix
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: framework-2.0.3
>            Reporter: Richard S. Hall
>            Assignee: Richard S. Hall
>             Fix For: framework-3.0.0
>
>
> Currently, the framework doesn't use generics and often adopts simple data structures based on arrays. At the time, this was done to keep things simple and avoid unnecessary class creation. Perhaps it is time to move beyond this thinking and more liberally use collection classes with generic. The OSGi Alliance is looking into support generics via "-target jsr14", so maybe this approach could be leveraged internally by the framework for now until the entire spec moves to Java 5.

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