PR java/16927 [Was Re: PATCH for better assertion control.]

Per Bothner per@bothner.com
Thu Sep 23 20:19:00 GMT 2004


Andrew Haley wrote:
> The obvious fix is not to generate code for the assertion at all -- it
> cannot be executed -- but simply return a null statement. However,
> you've gone to some trouble here not to do the "obvious" thing. Is
> there a special reason why? Maybe warnings for unused args or
> something like that?

As I recall: yes. More generally, to catch errors.
I don't remember the hows and whys of patch_string to know if your
patch is correct. It does seem like a kludge, but so does the
mechanism of patch_string. I don't remember why Alex did it this
way: One would think there must be a cleaner way
-- 
	--Per Bothner
per@bothner.com http://per.bothner.com/


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /