This is the mail archive of the java@gcc.gnu.org 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]
Other format: [Raw text]

Re: assertion support


On 12 Aug 2002, Tom Tromey wrote:

> >>>>> "Jeff" == Jeff Sturm <jsturm@one-point.com> writes:
>
> Jeff> Note that rhug currently doesn't build because jython declares
> Jeff> methods named "assert".
>
> I didn't know that.  Thanks.
>
> I think there are two good options:
>
> * Change jython.  Long term this is best.
>
> * Change gcj to have an option so that it doesn't recognize "assert"
>   as a keyword (the JDK javac has this).  I think the code to do this
>   would be pretty small, just a hack in lex.c (plus the command-line
>   recognition and of course the documentation).

Or both.  Chances are there are other packages declaring "assert" as
jython does.

> Care to submit a PR for this?

This is now java/7738.  I marked it high priority since I consider it a
regression.  Let me know if you don't agree and I'll downgrade it.

Jeff


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