harmony-commits mailing list archives

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

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

View raw message