harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Li (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2047) [classlib][luni]ClassLoader.getResourceAsStream() fails to get property file with special char in its name
Date Fri, 17 Nov 2006 02:13:38 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-2047?page=comments#action_12450593 ] 
Leo Li commented on HARMONY-2047:

Hi, Paulex:
     1. I need to add the "test#.properties" to a jar which is included in the classpath of
running junits and support.jar serves. Besides, I find the other jars used by archive testcases
are also add in it.  In my memory, it was a location for resource repositry. Have I missed
     2. Furthermore, in the patch I add "." to the classpath of run-tests in the build.xml
of luni module. So I wonder if ClassTest.test_getResourceAsStream_withSharpChar() fails due
to this since testcases pass on my machine.
     3. As to "%", after I digging into it, I found it is another story with a different reason.
Seems in the getResourceAsStream, RI will not call the decode of URL. Because of the calling
stack, I am trying to find an elegent resolution to avoid side-effect. So I recommend to report
it as another jira to fix.  

> [classlib][luni]ClassLoader.getResourceAsStream() fails to get property file with special
char in its name
> ----------------------------------------------------------------------------------------------------------
>                 Key: HARMONY-2047
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2047
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Leo Li
>         Assigned To: Paulex Yang
>         Attachments: patch.diff
> ClassLoader.getResourceAsStream() fails to get property file with special char in its
> Here is the testcase:
> (First pls put a property file called "AAA#.properties" in where can be searched by classpath.)
> public void testGetResourceAsStream() throws Exception
> {
>         InputStream in = TestClassLoader.class.getClassLoader().getResourceAsStream("AAA#.properties");
>         assertNotNull(in);
> }

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message