raybest4u / encog-java

Automatically exported from code.google.com/p/encog-java
0 stars 0 forks source link

NetworkCODEC.equals() does not compare arrays #53

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. NetworkCODEC.equals(a1, a2) 

What is the expected output? What do you see instead?
Expected that the arrays have the same size and the same elements.
Instead of this, it only compare the length.
There ist a loop, but it compares only the values of the first array with 
itsself.

What version of the product are you using? On what operating system?
2.4 Java on OS X Snow Leopard

Please provide any additional information below.
Use java.util.Arrays.equals(ar1[], ar2[]) !!!

Original issue reported on code.google.com by timasc...@googlemail.com on 4 Nov 2010 at 2:26

GoogleCodeExporter commented 9 years ago
Ah good catch, can't believe this was not noticed until now.  I just checked in 
a fix.  Thanks!

Original comment by heatonre...@gmail.com on 6 Nov 2010 at 11:24

GoogleCodeExporter commented 9 years ago
Ah good catch, can't believe this was not noticed until now.  I just checked in 
a fix.  Thanks!

Original comment by heatonre...@gmail.com on 6 Nov 2010 at 11:24