This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: assertion support
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: java at gcc dot gnu dot org
- Date: Tue, 27 Aug 2002 17:13:16 -0400 (EDT)
- Subject: 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