assertions

Cedric Berger cedric@wireless-networks.com
Wed Nov 28 06:34:00 GMT 2001


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




More information about the Java mailing list