harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Petrenko" <alexey.a.petre...@gmail.com>
Subject Re: API tests failing on the RI (was Re: [jira] Created: (HARMONY-5987) [classlib][luni] - different behavior with RI when file path contains "\\" in Linux)
Date Tue, 30 Sep 2008 12:47:48 GMT
This job really needs to be done...

2008/9/30 Mark Hindess <mark.hindess@googlemail.com>:
>
> In order to fix this bug I had to fix a number of invalid API tests.  I
> think it would be a good idea to:
>
> 1) Run the API tests against the RI
>
> 2) Create exclude lists - with references to the relevant JIRA - for non-bug
>   differences so the tests can be regularly run on the RI and expected to
>   pass cleanly
>
> 3) Fix the non-non-bug (!) differences.
>
> -Mark
>
> In message <48E1E68E.5070102@gmail.com>, Tim Ellison writes:
>>
>> Regis wrote:
>> > It seems intended to be, but I'm not sure. I think it's a great feature
>> > when porting the windows depended code("\\" in path name) to linux, but
>> > there is potential problem, how to reference a file which name contians
>> > "\\" on linux? And this different may cause surprise when some
>> > applications depends on the behavior of RI.
>> >
>> > Any comments/suggestions?
>>
>> I think we need to change to allow \ to be passed through as part of the
>> file name on Linux.
>>
>> Regards,
>> Tim
>>
>> > Regis Xu (JIRA) wrote:
>> >> [classlib][luni] - different behavior with RI when file path contains
>> >> "\\" in Linux
>> >> --------------------------------------------------------------------------
>> ---------
>> >>
>> >>
>> >>                  Key: HARMONY-5987
>> >>                  URL: https://issues.apache.org/jira/browse/HARMONY-5987
>> >>              Project: Harmony
>> >>           Issue Type: Bug
>> >>           Components: Classlib
>> >>     Affects Versions: 5.0M7
>> >>             Reporter: Regis Xu
>> >>              Fix For: 5.0M8
>> >>
>> >>
>> >> Consider the test:
>> >>
>> >>         File file = new File("d1\\d2");
>> >>         file.mkdirs();
>> >>
>> >> RI create a directory named "d1\d2", while Harmony create two
>> >> directories "d1" and "d1/d2", seems RI doesn't covert windows file
>> >> separator char "\\" to system separator char on Linux, and
>> >> spec says nothing about it. I quickly navigate the source, found we
>> >> have a method fixSlashes in java.io.File, which convert "\\" or "/" to
>> >> system separator char, so  it may be intended or a feature of harmony?
>> >>
>> >
>>
>
>
>

Mime
View raw message