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: assertions


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



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