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

Lucas Galfaso commented on FELIX-3202:
--------------------------------------

About (2) the current implementation makes the assumption that there will be no 
type conversion needed for the values that are indexed. This is not as generic 
as the filter matching, but given that the only values indexed are Strings (or 
array/collection of Strings) and the filter values, for the attributes indexed, 
are also Strings, then everything is good.
What I was trying to point out is that in the current implementation it is not 
possible to make an index on an attribute that it is possible that it is 
stored, at the filter level, using different classes (say the attribute 
BUNDLE_VERSION that can apper as Version and as String)

Solving this is a very hard problem that I am not trying to fix.
                
> Add generic type information to SimpleFilter
> --------------------------------------------
>
>                 Key: FELIX-3202
>                 URL: https://issues.apache.org/jira/browse/FELIX-3202
>             Project: Felix
>          Issue Type: Improvement
>          Components: Framework
>            Reporter: Lucas Galfaso
>            Priority: Minor
>         Attachments: felix_java5_filter.diff
>
>
> SimpleFilter does not have Java 5 generic type information and it is very 
> hard to add this to the current implementation.
> Devise a way to add generate type information to SimpleFilter while keeping 
> in mind that this is a critical component and any performance degradation 
> would slow down the entire framework

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to