ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
DataOutputStream out = new DataOutputStream(byteOut);
byte[] bytes = null;
try {
out.writeInt(markers.length);
<BUG>for (int i = 0; i < markers.length; i++) {
writeMarker((IMarker) markers[i], out);
}</BUG>
out.close();
bytes = byteOut.toByteArray();

ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
DataOutputStream out = new DataOutputStream(byteOut);
byte[] bytes = null;
try {
out.writeInt(markers.length);
for (Object marker : markers) {
writeMarker((IMarker) marker, out);
}
out.close();
bytes = byteOut.toByteArray();
