assertion support

Tom Tromey tromey@redhat.com
Mon Aug 12 10:33:00 GMT 2002


>>>>> "Jesse" == Jesse Rosenstock <jmr@ugcs.caltech.edu> writes:

Jesse> I see Bug 6996 (gij needs assertion-related command-line
Jesse> options).  I have a patch that adds command line options for
Jesse> controlling assertion status to gij.

Jesse> Is this what the bug had in mind, or something more
Jesse> sophisticated such as optimizing the byte code at load time if
Jesse> $assertionsDisabled is true?

Basically what we want is to duplicate the command-line processing of
the JDK.  If your patch does that, then that is sufficient.  I hadn't
even considered optimizing the bytecode at load time...

Jesse> Also, what about support in gcj?  Would it make sense to be
Jesse> able to set defaults at compile time, which could be changed at
Jesse> runtime by a GCJ_ASSERTION_STATUS environment variable?

Yes, adding an option to gcj to allow assertions to be disabled at
compile-time would be nice.  I'm not so sure about the environment
variable though.

Tom



More information about the Java mailing list