You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexei Zakharov (JIRA)" <ji...@apache.org> on 2007/05/29 23:47:16 UTC
[jira] Resolved: (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 ]
Alexei Zakharov resolved HARMONY-2255.
--------------------------------------
Resolution: Fixed
Hi Mikhail, thanks. I am able to apply this one. However, I've made some changes to your patch before committing. IMO it is a bit silly to encode something manually if it will be decoded in the next line. An easy fix for this is not to encode/decode at all as it was suggested in your first comment. :) In URLFileHandler.findResource() only prefix can be encoded, not name. Please look at my fix at r542658 and verify if it is ok. Thanks.
> [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
> Assignee: Alexei Zakharov
> Attachments: H-2255.patch, H-2255_upd.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.