This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
"catch ()" misdiagnosed
- To: java-discuss at sourceware dot cygnus dot com
- Subject: "catch ()" misdiagnosed
- From: Olly Betts <olly at survex dot com>
- Date: Tue, 23 Nov 1999 15:21:51 +0000
If I run "gcj -c X.java" with this source file:
class X {
public void test() {
try { }
catch () { }
}
}
I get:
X.java:4: ')' expected.
catch () { }
^
gcj: Internal compiler error: program jc1 got fatal signal 11
Now "')' expected" is wrong since it's just found a closing bracket.
It should be expecting a Throwable argument. And we shouldn't be
getting an internal compiler error either, should we?
I'm using gcc 2.95.2 with Bryce McKinlay's patch applied (got it from
http://waitaki.otago.ac.nz/~bryce/gcj/), and the latest libgcj from
CVS.
Cheers,
Olly