harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulex Yang (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-1000) [classlib][nio] java.nio.channels.spi.SelectorProvider.provider() does not load class from jar correctly
Date Mon, 31 Jul 2006 01:52:15 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1000?page=all ]

Paulex Yang closed HARMONY-1000.
--------------------------------


Verified by Andrew.

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

        

Mime
View raw message