Mauve harness failure on s390
Raif S. Naffah
raif@fl.net.au
Fri Jan 31 09:22:00 GMT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
hello Ulrich,
On Friday 31 January 2003 12:45, Ulrich Weigand wrote:
> ...compiling the test harness will generate
> compiler warnings that cause the test suite run to be aborted.
> Specifically, I am seeing this:
>> gnu/testlet/SimpleTestHarness.java: In class
> `gnu.testlet.SimpleTestHarness': gnu/testlet/SimpleTestHarness.java:
> In method `gnu.testlet.SimpleTestHarness.main(java.lang.String[])':
> gnu/testlet/SimpleTestHarness.java:309: warning: unreachable bytecode
> from 115 to before 118 gnu/testlet/SimpleTestHarness.java:326:
> warning: unreachable bytecode from 202 to before 205
>> The source code in question (Mauve CVS as of today) has these
> constructs: catch (Exception x)
> {
> throw new RuntimeException ("Missing file path after
> '-file'. Exit"); }
> and
> catch (FileNotFoundException x)
> {
> throw new RuntimeException ("Unable to find \""+file+"\".
> Exit"); }
>> If I comment out the two throw statements, the file builds without
> warning.
>> Unfortunately, my knowledge of the Java language is quite limited,
> and my knowledge of Java bytecodes nonexistent, so I'd appreciate
> some help in finding out what's wrong here ...
the above is perfectly legal java :-) unreachable bytecode is usually
bytecode that follows a return --hence unreachable.
the SimpleTestHarness from CVS compiles with no warnings or errors with
both jikes 1.18 and gcj 3.4 20030126 (experimental) on my athlon.
have you tried a different compiler and got the same errors? what
compiler are you using?
cheers;
rsn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Que du magnifique
iD8DBQE+OkC8+e1AKnsTRiERA1j3AKDcy0Q4L96/VFCXSOxNT/mTuzp8vwCfcwNV
lKMOQcE2Enx3RojD7kaVq+A=
=1yCz
-----END PGP SIGNATURE-----
More information about the Java
mailing list