[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-releng-dev] [eclipse-build]Build N20060206-0010 (Timestamp: 200602060010):Automated JUnit testing complete. Test failures/errors occurred.
|
When a project is using 1.4 features like the assert statement, some
changes need to be done in the project's settings.
In the build.properties file, the following lines must be added:
javacSource=1.4
javacTarget=1.4
This should enable the PDE build to generate scripts that are setting the
right values for the compiler's settings. Otherwise by default the source
level is 1.3 and the target platform is 1.2 even if the compliance is 1.4.
This is due to the fact that in 1.4 JDK the new features were not enabled
by default. This has changed and all future versions (1.5 and above) are
enabling their new features by default.
Then at runtime, you also need to pass the following argument -ea in
order to enable assertions. By default assertions are disabled. So if you
use an assert statement and you want to be sure that the assertion is
checked at runtime, you should be sure that everyone is enabling
assertion. Might want to change the defaults in the eclipse.ini file.
I would recommand for now to use the Assert class from the runtime plugin.
This will be checked without any changes in the runtime settings.
Hope this help,
Olivier