harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-6345) [classlib][sql] rowset.properties template causes an empty provider to be added in SyncFactory
Date Thu, 01 Oct 2009 08:20:23 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-6345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Tim Ellison resolved HARMONY-6345.

    Resolution: Fixed

Thanks Catherine.

Patch applied at repo revision r820568.

(Please check your editor's formatting options, we'd prefer spaces rather then tabs for laying
out the code.)

Please verify.

> [classlib][sql] rowset.properties template causes an empty provider to be added in SyncFactory
> ----------------------------------------------------------------------------------------------
>                 Key: HARMONY-6345
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6345
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: all
>            Reporter: Catherine Hope
>            Assignee: Tim Ellison
>         Attachments: 6345.patch
> 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

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

View raw message