harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Regis Xu (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6063) [classlib][prefs] implement mechanism of loading preference service provider
Date Mon, 05 Jan 2009 05:41:45 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660667#action_12660667

Regis Xu commented on HARMONY-6063:

The configuration file is:

$ cat META-INF/services/java.util.prefs.PreferencesFactory
# It's comments

not.exist.provider # mock provider

The test case is:
$ cat prefs/TestPrefs.java 
package prefs;

public class TestPrefs {
    public static void main(String[] args) throws Exception {
        // make sure load from configuration file

RI throw a internal error:
Exception in thread "main" sun.misc.ServiceConfigurationError: java.util.prefs.PreferencesFactory:
Provider not.exist.provider not found
	at sun.misc.Service.fail(Service.java:129)
	at sun.misc.Service.access$000(Service.java:111)
	at sun.misc.Service$LazyIterator.next(Service.java:273)
	at java.util.prefs.Preferences.factory1(Preferences.java:265)
	at java.util.prefs.Preferences.access$000(Preferences.java:208)
	at java.util.prefs.Preferences$2.run(Preferences.java:255)
	at java.util.prefs.Preferences$2.run(Preferences.java:254)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.util.prefs.Preferences.factory(Preferences.java:252)
	at java.util.prefs.Preferences.<clinit>(Preferences.java:210)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:164)
	at prefs.TestPrefs.main(TestPrefs.java:7)

seems RI load provider when class Preferences loaded

> [classlib][prefs] implement mechanism of loading preference service provider
> ----------------------------------------------------------------------------
>                 Key: HARMONY-6063
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6063
>             Project: Harmony
>          Issue Type: Improvement
>          Components: Classlib
>    Affects Versions: 5.0M8
>            Reporter: Regis Xu
>            Assignee: Nathan Beyer
>         Attachments: HARMONY-6063.diff
> implement mechanism of loading preference service provider, make it compatible with RI

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

View raw message