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] Updated: (HARMONY-2255) [classlib][luni]ClassLoader.getResourceAsStream fails to get file whose name with "%"
Date Fri, 25 May 2007 16:44:16 GMT

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

Mikhail Markov updated HARMONY-2255:
------------------------------------

    Attachment: H-2255.patch

Here is the patch fixing the issue + regression test.

Fix description: added 'escaping' of '%' symbol in the resource name before decoding to avoid
IAE.

> [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
>         Attachments: H-2255.patch
>
>
> 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