You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Paulex Yang (JIRA)" <ji...@apache.org> on 2006/07/28 10:38:15 UTC

[jira] Resolved: (HARMONY-1000) [classlib][nio] java.nio.channels.spi.SelectorProvider.provider() does not load class from jar correctly

     [ http://issues.apache.org/jira/browse/HARMONY-1000?page=all ]

Paulex Yang resolved HARMONY-1000.
----------------------------------

    Resolution: Fixed

Andrew,, patch applied at revision r426437, thanks a lot for this enhancement, please verify that the problem is fully fixed as you expected.


> [classlib][nio] java.nio.channels.spi.SelectorProvider.provider() does not load class from jar correctly
> --------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1000
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1000
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Andrew Zhang
>         Assigned To: Paulex Yang
>         Attachments: nio.diff, Provider.java, sampe_provider.jar
>
>
> java.nio.channels.spi.SelectorProvider.provider() does not load class from jar correctly, espeically when a jar file start with comment, i.e. as following format
> # this is a sample jar of SelectorProvider
> com.andrew.Provider
> Harmony doesn't load any provider while RI can correctly load the specified class. 
> Following test reproduces the bug. The test should be run in seperate vm. 
>     public void test_provider () throws Exception {
>         SelectorProvider provider = SelectorProvider.provider();
>         System.out.println(provider);
>     }
> Put test_sample.jar in the run classpath. And put com.andrew.Provider in the project. 
> RI output:
> com.andrew.Provider@7bd9f2
> Harmony output:
> org.apache.harmony.nio.internal.SelectorProviderImpl@782a782a
> I'll upload a patch to fix this problem soon.
> Thanks!
> Best regards,
> Andrew

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira