I am using Eclipse. I want to enable assert in my code. I alrready have
the compiler set to use Jave 5.0. How do I configure the build and run
to use the correct switch to enable assert evaluations?
Xavier Tarrago - 17 Mar 2006 09:28 GMT
Menu Windows.Preferences ->
uncheck "Use default compliance setting"
select 1.4, 1.4, "Error", "Warning"
It should also work with 5.0 settings, but I use the above and it works...
> I am using Eclipse. I want to enable assert in my code. I alrready have
> the compiler set to use Jave 5.0. How do I configure the build and run
> to use the correct switch to enable assert evaluations?
Xavier Tarrago - 17 Mar 2006 09:31 GMT
Sorry...
To enable assertions, run with -ea command line option. I think that you can
be more specific with some -ea:my.package
> I am using Eclipse. I want to enable assert in my code. I alrready have
> the compiler set to use Jave 5.0. How do I configure the build and run
> to use the correct switch to enable assert evaluations?