Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6345

[classlib][sql] rowset.properties template causes an empty provider to be added in SyncFactory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.0M12
    • Classlib
    • None
    • all
    • Patch Available
    • Novice

    Description

      The default rowset.properties file in jre/lib has empty values to show the format of the file, but this causes an empty SyncProvider to be created so if you try and get an instance of all the registered providers, for example:
      Enumeration providers = SyncFactory.getRegisteredProviders();
      while (providers.hasMoreElements())
      SyncFactory.getInstance(((SyncProvider)providers.nextElement()).getProviderID());

      Then you'll get a javax.sql.rowset.spi.SyncFactoryException: ClassNotFoundException: <-- the provider is called ""
      at javax.sql.rowset.spi.ProviderImpl.getImpl(ProviderImpl.java:64)
      at javax.sql.rowset.spi.SyncFactory.getInstance(SyncFactory.java:215)

      The Sun equivalent properties file defines the default Sun SyncProvider classes, which is also means the name of the class is exposed, so I think the Harmony one should do this also.

      Attachments

        1. 6345.patch
          3 kB
          Catherine Hope

        Activity

          People

            tellison Tim Ellison
            chope Catherine Hope
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: