[ODEJAVA] Assert problems

Hi to all.

I’m using NetBeans IDE and J2SE 1.4.x.
When I try to run an example using ODEJAVA CVS I get multiple “assert” warnings and errors.

Could someone help me ?

Thanks in advance.

google: “java assert site:java.sun.com”

Click top link “Programming With Assertions”

Click link: “Compiling Files That Use Assertions”

Please also read “Enabling and Disabling Assertions” section

I must say I’m surprised there are so many questions on this topic - doesn’t anyone read the JDK changelogs?

Will.

to anyone using Eclipse:

go to the project properties: under Java Comiler -> Compliance and Classfiles select “1.4” for the source compatability and “Error” for “Disallow indentifiers called assert”. Eclipse is silly in that if you don’t set that to “Error” you can’t click OK - and it doesn’t really tell you why.

Will.