From 1d79e889ca49c2867f5abeebe6fc27de8ea7871d21544841e9d0b8db6fabf417 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Mon, 18 Oct 2021 06:32:53 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/aqute-bnd?expand=0&rev=17 --- aqute-bnd-java8compat.patch | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/aqute-bnd-java8compat.patch b/aqute-bnd-java8compat.patch index 52e8626..f908744 100644 --- a/aqute-bnd-java8compat.patch +++ b/aqute-bnd-java8compat.patch @@ -201,7 +201,7 @@ } } --- bnd-5.1.1.REL/aQute.libg/src/aQute/lib/io/IO.java 2020-06-16 23:03:04.000000000 +0200 -+++ bnd-5.1.1.REL/aQute.libg/src/aQute/lib/io/IO.java 2021-10-18 07:56:16.211104140 +0200 ++++ bnd-5.1.1.REL/aQute.libg/src/aQute/lib/io/IO.java 2021-10-18 08:32:23.545468242 +0200 @@ -25,6 +25,7 @@ import java.net.MalformedURLException; import java.net.URL; @@ -276,6 +276,15 @@ out.write(bb); } return out; +@@ -490,7 +491,7 @@ + try { + ByteBuffer bb = ByteBuffer.allocate(BUFFER_SIZE); + byte[] buffer = bb.array(); +- for (; in.read(bb) > 0; bb.clear()) { ++ for (; in.read(bb) > 0; ((Buffer)bb).clear()) { + out.write(buffer, 0, bb.position()); + } + return out; @@ -515,7 +516,7 @@ } ByteBuffer bb = ByteBuffer.allocate((int) size);