--- old/src/share/classes/com/sun/imageio/plugins/jpeg/MarkerSegment.java 2012-09-13 19:48:18.651821300 +0400 +++ new/src/share/classes/com/sun/imageio/plugins/jpeg/MarkerSegment.java 2012-09-13 19:48:18.139792000 +0400 @@ -114,7 +114,7 @@ newGuy = (MarkerSegment) super.clone(); } catch (CloneNotSupportedException e) {} // won't happen if (this.data != null) { - newGuy.data = (byte[]) data.clone(); + newGuy.data = data.clone(); } return newGuy; }