harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Catherine Hope (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-6345) [classlib][sql] rowset.properties template causes an empty provider to be added in SyncFactory
Date Wed, 30 Sep 2009 23:03:23 GMT

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

Catherine Hope updated HARMONY-6345:

    Attachment: 6345.patch

Named Harmony SyncProvider in the rowset.properties file and added testcase to show problem

> [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
>         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