replace assert by throw new AssertionError

Rémi Forax forax at univ-mlv.fr
Wed Oct 3 15:19:18 PDT 2007


Jesse Glick a écrit :
> 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, it seems that currently the compiler  doesn't  rely  on the  
command line
and directly calls  ClassLoader.setPackageAssertionStatus().
>
> -J.
>
Rémi



More information about the compiler-dev mailing list