"catch ()" misdiagnosed
Olly Betts
olly@survex.com
Tue Nov 23 07:21:00 GMT 1999
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
More information about the Java
mailing list