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