You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mikhail Markov (JIRA)" <ji...@apache.org> on 2007/05/25 18:44:16 UTC
[jira] Updated: (HARMONY-2255)
[classlib][luni]ClassLoader.getResourceAsStream fails to get file whose
name with "%"
[ 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.