Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0M15
    • Component/s: None
    • Labels:
    • Patch Info:
      Patch Available

      Description

      spec - http://java.sun.com/j2se/1.4.2/docs/api/javax/imageio/spi/ServiceRegistry.html#lookupProviders(java.lang.Class)

      I have created a new Iterator - "private static class LookupProvidersIterator implements Iterator" for this method. The iterator needs to instantiates new objects and throws ServiceConfigurationError exception at runtime, so we have to use customized Iterator.

      The flow:
      1. call ClassLoader.getResourse(String) to get a set of provider-configuration files that related to the specified class.

      2. The iterator parses all provider-configuration files to get the names of provider classes

      3. In LookupProvidersIterator.next(), instantiate objects

        Activity

        Lang Yang made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Hindess made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 5.0M15 [ 12315054 ]
        Resolution Fixed [ 1 ]
        Mark Hindess made changes -
        Assignee Mark Hindess [ hindessm ]
        Lang Yang made changes -
        Attachment HARMONY-6553-v3.diff [ 12452104 ]
        Lang Yang made changes -
        Attachment HARMONY-6553-v2.diff [ 12451858 ]
        Lang Yang made changes -
        Attachment HARMONY-6553-v2.diff [ 12451858 ]
        Lang Yang made changes -
        Attachment TestLookupProviders.java [ 12447109 ]
        Lang Yang made changes -
        Attachment HARMONY-6553-v2.diff [ 12447430 ]
        Lang Yang made changes -
        Attachment HARMONY-6553.diff [ 12447108 ]
        Lang Yang made changes -
        Attachment HARMONY-6553-v2.diff [ 12447430 ]
        Lang Yang made changes -
        Field Original Value New Value
        Attachment HARMONY-6553.diff [ 12447108 ]
        Attachment TestLookupProviders.java [ 12447109 ]
        Lang Yang created issue -

          People

          • Assignee:
            Mark Hindess
            Reporter:
            Lang Yang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development