Andrew Hughes wrote:
> This fixes a bug introduced by Ian's patch which
> causes the Byte static initializer to get stuck
> in an infinite loop.
> 
> ChangeLog:
> 
> 2008-04-21  Andrew John Hughes  <[EMAIL PROTECTED]>
> 
>       * java/lang/Byte.java:
>       (static): Use a short as the loop counter, not
>       a byte as this can't exceed MAX_VALUE.

Why use a short and not an int?

    for (int i=MIN_VALUE; i <= MAX_VALUE; i++)

would be more idiomatic and faster on many targets.

Andrew.



Reply via email to