Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-beta-9
-
None
-
None
Description
public static byte[] convertToByteArray(Object a) {
652 byte[] ans = null;
653
654 // conservative coding
655 if (a.getClass().getName().equals("[B"))
else {
658 Object[] ia = (Object[]) a;
659 ans = new byte[ia.length];
660 for (int i = 0; i < ia.length; i++)
663 }
664 return ans;
665 }