I've found a serious error in "my" Java code of the ByteArray class: The copyBytes() method will not work correctly with overlapping source and target sections within the same array. This is because of the wrong comparison in the statement
>if (source != target || srcIndex <= targetIndex)
The correct version is
>if (source != target || srcIndex **>=** targetIndex)
I will fix this as soon as possible.
Holger
Log in to post a comment.
I've found a serious error in "my" Java code of the ByteArray class: The copyBytes() method will not work correctly with overlapping source and target sections within the same array. This is because of the wrong comparison in the statement
>if (source != target || srcIndex <= targetIndex)
The correct version is
>if (source != target || srcIndex **>=** targetIndex)
I will fix this as soon as possible.
Holger