This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: "catch ()" misdiagnosed


In article <14394.58384.342311.675902@deliverance.cygnus.com>, Alexandre Petit-Bianco wrote:
>Olly Betts writes:
>> Now "')' expected" is wrong since it's just found a closing bracket.
>
>Indeed.
>
>> And we shouldn't be getting an internal compiler error either,
>> should we?
>
>We shouldn't. Can you try to patch below?

I now get this (which seems correct to me):

$ gcj -c X.java
X.java:4: Missing term.
      catch () { }
             ^
1 error

Cheers,
Olly
-- 
Two roads diverged in a wood, and I - I fought my way through the undergrowth.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]