Dalibor Topic <robilad@yahoo.com> writes:
> Arnaud Vandyck wrote:
[...]
>> 1° Is it a bug in the Debian package or is it a problem in Kaffe?
>> 2° Is it resolved or does it still exist?
>>
>> #136148 kaffe's ClassLoader.getSystemResource( "foo/" ) returns null
>>
>> ,----
>> | Version: 1:1.0.6-6.1
>> |
>> | The problem arises when requesting a directory, thru
>> | getResource(). Kaffe returns null, while j2sdk1.3.1 returns a
>> | proper URL. It would appear that kaffe is wrong in this regard.
>> `----
>
> Fixed in 1.1.0, when class loading was rewritten to match 1.3 behaviour
> more closely.
>
>> cat t.java
> import java.net.URL;
>
> public class t {
> public static void main(String[] args) {
> URL u = ClassLoader
> .getSystemClassLoader()
> .getResource(args[0]);
> System.out.println(u);
> }
> }
>
>> /usr/local/kaffe/bin/kaffe t "./"
> file:/home/topic//
Thanks to Dalibor Topic for helping in closing bugs,
Best regards,
--
.''`.
: :' :rnaud
`. `'
`-
Attachment:
pgpbivRf7ShYa.pgp
Description: PGP signature