Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-6174

org.apache.felix.utils.properties.TypedProperties does not parse arrays correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Critical
    • Resolution: Unresolved
    • utils-1.10.4
    • utils-1.11.10
    • Utils
    • None
    • Windows 7 / tested with org.apache.felix.org.apache.felix.utils_1.11.2.jar

    Description

      org.apache.felix.utils.properties.TypedProperties does not parse arrays in OSGi configurations correctly.

      While a single line config with

      key=["val1","val2"] works fine

      just adding a standard key value pair

      key2=val2

      has the consequence that the value for "key" is not parsed as an array anymore.

      (see attached JUnit test to demonstrate the problem)

       

      Attachments

        1. TypedPropertiesTest.java
          3 kB
          Mike Rumpf

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            Mike Rumpf Mike Rumpf
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: