replace assert by throw new AssertionError
jesse.glick at sun.com
Wed Oct 3 14:10:02 PDT 2007
Jonathan Gibbons wrote:
> javac currently contains assertion statements, and goes out of its
> way to ensure assertions are enabled.
Why? Wouldn't non-javac developers just want it to run as fast as
possible and trust that it is not buggy? You can always use -J-ea to
enable assertions if you want to be sure, right?
jesse.glick at sun.com netbeans.org ant.apache.org hudson.dev.java.net
More information about the compiler-dev