Re: ArrayUtils.arrayFill() toIndex NOT inclusive

Bryan Armstrong <bryan.armstrong-6tN4nzCoH/[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
Peter Lewis wrote:
> Hello,
> 
> I have found that the ArrayUtils.arrayFill() utility does not fill up to the 
> toIndex.
> 
> This is contrary to the documentation in Don Loomis' book page 247.

However, this is consistent with the most up to date documentation in 
the <tinidir>/docs/javadocs directory.

In the 1.02 release (when the book was published), the interface was as 
described in the book.  When JDK 1.2 was in wide use, we were lobbied by 
our customers to match the interface provided by java.util.Arrays.fill() 
provided by JDK 1.2.  In TINIOS 1.10 and greater, the behavior you are 
seeing is documented in com.dalsemi.system.ArrayUtils javadoc and 
matches the documentation in JDK 1.2 and higher.

-- 
--
Bryan Armstrong
bryan.armstrong-6tN4nzCoH/[email protected]


_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.