File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
src/java.base/share/classes/java/io Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 1994, 2023 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 1994, 2024 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
@@ -644,7 +644,7 @@ private long implTransferTo(OutputStream out) throws IOException {
644644 int avail = count - pos ;
645645 if (avail > 0 ) {
646646 if (isTrusted (out )) {
647- out .write (getBufIfOpen (), pos , count );
647+ out .write (getBufIfOpen (), pos , avail );
648648 } else {
649649 // Prevent poisoning and leaking of buf
650650 byte [] buffer = Arrays .copyOfRange (getBufIfOpen (), pos , count );
Original file line number Diff line number Diff line change @@ -503,7 +503,6 @@ java/lang/instrument/RetransformBigClass.sh 8065756 generic-
503503# jdk_io
504504
505505java/io/pathNames/GeneralWin32.java 8180264 windows-all
506- java/io/BufferedInputStream/TransferTo.java 8322877 generic-all
507506
508507############################################################################
509508
You can’t perform that action at this time.
0 commit comments