JUnit ran into the same issue and renamed "assert" to "assertTrue".. Offhand
there appears to be alot of JUnit use in Jakarta projects, so it would sound
nice and familiar.

Regards,
Levi Cook

----- Original Message -----
From: "Sam Ruby" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 06, 2001 1:42 PM
Subject: [httpclient] assert is becoming a reserved word


> See http://java.sun.com/j2se/1.4/docs/guide/lang/assert.html
>
> One impact of this is that methods named "assert" will be flagged as a
> compilation error.  The jakarta-log4j project simply chose to remove such
a
> method.  I see that such a method is defined by httpclient - but I see no
> real usages.  So one fix might be to simply remove the method.  Another
> would be to replace the call to log4j's assert with the following:
>
>   if (!assertion) _category.error(msg);
>
> - Sam Ruby
>
>

Reply via email to