This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: assertions
- From: Cedric Berger <cedric at wireless-networks dot com>
- To: Jeff Sturm <jsturm at one-point dot com>
- Cc: james_williams <james_williams at optusnet dot com dot au>,java at gcc dot gnu dot org
- Date: Wed, 28 Nov 2001 15:34:18 +0100
- Subject: Re: assertions
- References: <Pine.LNX.4.10.10111280917220.9969-100000@mars.deadcafe.org>
Jeff Sturm wrote:
>
>On Thu, 29 Nov 2001, james_williams wrote:
>
>>Any plans to include the "assert" keyword into GCJ?
>>
>>How bout generics?
>>
>
>Once these features fully become part of the java language (is there a
>specification online?) there is a good chance someone will contribute them
>to gcj some day.
>
http://jcp.org/aboutJava/communityprocess/first/jsr041/
http://www.jcp.org/aboutJava/communityprocess/review/jsr014/index.html
Both of them are in a pretty advanced state of specification
>An alternative is to use another bytecode compiler (jikes, javac) and gcj
>to compile bytecode->native until gcj supports the language features you
>need.
>
For generics, this is probably fine.
For assertions, you need some runtime support for enabling/disabling
assertions
(or tricks in gcj if you choose to enable/disable assertions statically)
Cedric