assertions

Peter Moulder reiter@netspace.net.au
Thu Nov 29 20:12:00 GMT 2001


On 2001年11月29日, james_williams wrote:
> Any plans to include the "assert" keyword into GCJ?

I use the C way: run a preprocessor to handle assert calls.
Can use either the C/C++ preprocessor or consider using m4.
One gotcha is that java doesn't support `#line' directives, so if you use
the C/C++ preprocessor then you'll need to use `grep -v '^#'' somewhere.
> How about generics?

You could use one of the implementations that comiles to java (e.g. polyj)
or use any implementation of genericity and use gcj on the produced class
files.
pjm.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /