[kepler-dev] asserts in Java

Rod Spears rods at ku.edu
Tue Dec 14 09:48:29 PST 2004


I was wondering if there was a reason we were not using "asserts" that 
became available in the JDK 1.4?

Just as in C++ I think there can be a lot of utility in feature.

http://java.sun.com/j2se/1.4.2/docs/guide/lang/assert.html#usage


It would appear that they are always off and that we can turn them on 
for development runtime enabling us to catch things without incurring 
the overhead.

Rod




More information about the Kepler-dev mailing list