From b3b311c7ed44aa8ecce524922f4f0eed3d3f7472 Mon Sep 17 00:00:00 2001
From: Petr Pucil
Date: Tue, 28 Jun 2022 13:42:58 +0200
Subject: [PATCH 1/5] Make the compiled package runnable on Java 7 or later
Should fix https://github.com/kaitai-io/kaitai_struct_java_runtime/issues/34
---
pom.xml | 28 +++++++++++++++++++---------
1 file changed, 19 insertions(+), 9 deletions(-)
diff --git a/pom.xml b/pom.xml
index 9819009..43e1b9e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -40,10 +40,29 @@
UTF-8
+ 1.7
+ 1.7
+
+
+ jdk9
+
+ [1.9,)
+
+
+ 7
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.10.1
+ org.apache.maven.pluginsmaven-source-plugin
@@ -111,15 +130,6 @@
-
- org.apache.maven.plugins
- maven-compiler-plugin
- 3.1
-
-
- 6
-
-
From 3b8d66ecc96b6553d99c6ae035b8751439f93b5e Mon Sep 17 00:00:00 2001
From: Petr Pucil
Date: Tue, 28 Jun 2022 18:31:58 +0200
Subject: [PATCH 2/5] Fix Javadoc error on JDK 17 (move @implNote before
)
---
src/main/java/io/kaitai/struct/ByteBufferKaitaiStream.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/main/java/io/kaitai/struct/ByteBufferKaitaiStream.java b/src/main/java/io/kaitai/struct/ByteBufferKaitaiStream.java
index 5115bfe..850feb9 100644
--- a/src/main/java/io/kaitai/struct/ByteBufferKaitaiStream.java
+++ b/src/main/java/io/kaitai/struct/ByteBufferKaitaiStream.java
@@ -106,8 +106,9 @@ public ByteBuffer asRoBuffer() {
/**
* Closes the stream safely. If there was an open file associated with it, closes that file.
* For streams that were reading from in-memory array, does nothing.
+ * @implNote
*
- * @implNote Unfortunately, there is no simple way to close memory-mapped ByteBuffer in
+ * Unfortunately, there is no simple way to close memory-mapped ByteBuffer in
* Java and unmap underlying file. As {@link MappedByteBuffer} documentation suggests,
* "mapped byte buffer and the file mapping that it represents remain valid until the
* buffer itself is garbage-collected". Thus, the best we can do is to delete all
From 1e6d665e41ca06b0ec279e7b3506322dd096203c Mon Sep 17 00:00:00 2001
From: Petr Pucil
Date: Tue, 28 Jun 2022 14:20:44 +0200
Subject: [PATCH 3/5] ByteBufferKaitaiStream: text URL to link (in Javadoc)
---
src/main/java/io/kaitai/struct/ByteBufferKaitaiStream.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/io/kaitai/struct/ByteBufferKaitaiStream.java b/src/main/java/io/kaitai/struct/ByteBufferKaitaiStream.java
index 850feb9..0f5f06f 100644
--- a/src/main/java/io/kaitai/struct/ByteBufferKaitaiStream.java
+++ b/src/main/java/io/kaitai/struct/ByteBufferKaitaiStream.java
@@ -129,7 +129,7 @@ public ByteBuffer asRoBuffer() {
*