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


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.



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