[kaffe] File order bug - Testcase

Wolfgang Baer WBaer at gmx.de
Wed Aug 10 00:31:57 PDT 2005


Ito Kazumitsu wrote:
> From: Wolfgang Baer <WBaer at gmx.de>
> Subject: [kaffe] File order bug - Testcase
> Date: Tue, 09 Aug 2005 22:01:42 +0200
> 
> 
>>here is the testcase. kaffe behaves differently than all other 
>>implementations in the order the files are listed.
> 
> 
> Seeing libraries/clib/io/File.c, I understand how the order of files
> is reversed. But, however strange Kaffe's result looks, I do not think
> it is Kaffe's bug.
> 
> Sun's API document of java.io.File#listFiles() says:
> 
>     There is no guarantee that the name strings in the resulting array will
>     appear in any specific order; they are not, in particular, guaranteed to
>     appear in alphabetical order.
> 
> So we must not depend on the order of files java.io.File#listFiles() returns.
> 
> That said, I think it would be better if we could make Kaffe's
> result look similar to Sun's.

Hi Ito,

yes the API does not specify an order. However, as the unit testcases
of logkit show, some programs depend on the SUN behaviour.

This is why I found this "bug" and I think kaffe should follow what Sun
does (and the other gnu classpath vms).

Wolfgang





More information about the kaffe mailing list