You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "kalwi (JIRA)" <ji...@apache.org> on 2011/01/03 23:58:46 UTC

[jira] Created: (FELIX-2757) Mismatch collection types for storing/retrieving categories into/from resource.

Mismatch collection types for storing/retrieving categories into/from resource.
-------------------------------------------------------------------------------

                 Key: FELIX-2757
                 URL: https://issues.apache.org/jira/browse/FELIX-2757
             Project: Felix
          Issue Type: Bug
          Components: Bundle Repository (OBR)
    Affects Versions: bundlerepository-1.6.4
         Environment: Java SE 1.6.0_23-b05 x64
Windows Server 2008 R2 x64
            Reporter: kalwi
            Priority: Minor


Affected class: org.apache.felix.bundlerepository.impl.ResourceImpl

Problem:
In method 'addCategory(String category)' and 'getCategories()', value associated with key CATEGORY in m_map casts as List.
In method 'put(String key, String value, String type)', values are stored into HashSet if key equals to CATEGORY.

It leads to ClassCastException if category is stored into resource via put(...) method and then retrieved by getCategories() method.


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