harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Markov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2255) [classlib][luni]ClassLoader.getResourceAsStream fails to get file whose name with "%"
Date Tue, 22 May 2007 11:47:16 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-2255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12497836
] 

Mikhail Markov commented on HARMONY-2255:
-----------------------------------------

Well, i've figured out why the decoding is used: for handling special characters like "#"
- if just remove the mentioned code, the regression test URLClassLoaderTest.testFindResource_H3461()
starts failing, so this simple "fix" is not appropriate.
I'll try to find a better one :-).

> [classlib][luni]ClassLoader.getResourceAsStream fails to get file whose name with "%"
> -------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2255
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2255
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Leo Li
>
> Here is the testcase:
> public void testGetResourceAsStream() throws Exception 
>     { 
>             InputStream in = this.getClass().getClassLoader().getResourceAsStream("AAA%.properties");

>             assertNotNull(in); 
>     } 
> RI passes
> Harmony fails

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


Mime
View raw message