This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: assertions
- From: Peter Moulder <reiter at netspace dot net dot au>
- To: james_williams <james_williams at optusnet dot com dot au>
- Cc: java at gcc dot gnu dot org
- Date: Fri, 30 Nov 2001 15:12:43 +1100 (EST)
- Subject: Re: assertions
On Thu, 29 Nov 2001, 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.