Sun added support for assertions to Java with JDK v1.4. Because the v1.4 runtime introduced the ability the enable and disable assertions at various levels of granularity, the Bistro compiler was enhanced to translate two message idioms into primitive assertions.
aBoolean assert: [ failureMessage ].
The Bistro compiler translates the first idiom into a simple assert and the second idiom into an extended assert.
assert primitive.booleanFrom( aBoolean );
assert primitive.booleanFrom( aBoolean ) : (failureMessage);
To utilize these enhancements, the Bistro compiler always invokes the Java compiler with the -source 1.4 option.
Java is a trademark of Sun Microsystems, Inc.
Permission is granted to copy this document provided this
copyright statement is retained in all copies.
Copyright 1999-2002 Nikolas S. Boyd.