<core-libs-dev> New constructor in sun.tools.java.ClassPath builds a path using File.separator instead of File.pathSeparatorChar

Deven You youdwei at linux.vnet.ibm.com
Mon Apr 9 09:32:58 UTC 2012


On 04/09/2012 05:03 PM, Alan Bateman wrote:
> On 09/04/2012 08:01, Deven You wrote:
>> Hi core-libs-devs,
>>
>> There are 2 sun bugs related to this issue:
>>
>> http://bugs.sun.com/view_bug.do;jsessionid=663548580556affffffffe43f50bf92c75b5?bug_id=6695325^and 
>>
>> http://bugs.sun.com/view_bug.do;jsessionid=663548580556affffffffe43f50bf92c75b5?bug_id=6610897^ 
>>
>>
>> The basic problem is that the new constructor
>>
>>     public ClassPath(String[] patharray)  which calls new private method
>>
>>     private void init(String}[] patharray)
>>
>> The init method builds a pathstr using File.separator instead of 
>> File.pathSeparatorChar.
>>
>> Since it is really a bug and the fix is simple, I have made a 
>> patch[1] for this issue and a test case[2] to recreated this issue.
>>
>> The patch just uses File.pathSeparatorChar to replace File.separator.
>>
>> Please anyone can review it?
> No issue with the proposed change but I'm curious how you ran into 
> this. Is it with rmic or something else?
>
> -Alan
>
Hi Alan,

The issue is reported by one of our test team which maintains  a set of 
ORB test cases.

Thanks a lot!

-- 
Best Regards,

Deven




More information about the core-libs-dev mailing list