[kaffe] erroneous regression test: test/regression/ProcessTest
Rob Gonzalez
rgonzale at wso.williams.edu
Mon Jul 14 11:41:02 PDT 2003
Hi everyone,
When running ProcessTest against either kaffe or Sun's JRE 1.4.1_01 I get
an "arrayIndexOutOfBoundsException" on line 24 in method main(), which
accesses args[0], where args.length == 0.
I believe the problems is that args[0] traditionally referred to the
executing program, though in Java that's no longer the case, if it ever
was (I don't recall ever using args[0] that way in Java).
If I replace the
String kaffe_exe = args[0]
with
String kaffe_exe = "kaffe"
then everything's cool on my box, where I execute kaffe without any
options.
I'm not checking in the change because I don't think that it's safe to
assume that "kaffe" is the right command to execute in all systems. In
particular, it doesn't include whatever flags were used to execute the
parent version of the program, but something should be done about this
test case.
Cheers,
Rob
More information about the kaffe
mailing list