This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Mauve harness failure on s390
- From: "Raif S. Naffah" <raif at fl dot net dot au>
- To: Ulrich Weigand <weigand at immd1 dot informatik dot uni-erlangen dot de>,java at gcc dot gnu dot org
- Date: Fri, 31 Jan 2003 20:24:03 +1100
- Subject: Re: Mauve harness failure on s390
- References: <200301310145.CAA19836@faui11.informatik.uni-erlangen.de>
- Reply-to: raif at fl dot net dot au
-----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-----