diff --git a/openpdf/pom.xml b/openpdf/pom.xml
index e90b9d1c1..c3b012383 100644
--- a/openpdf/pom.xml
+++ b/openpdf/pom.xml
@@ -56,7 +56,7 @@
org.mockito
mockito-core
- 5.10.0
+ 4.11.0
test
diff --git a/openpdf/src/main/java/com/lowagie/text/pdf/hyphenation/SimplePatternParser.java b/openpdf/src/main/java/com/lowagie/text/pdf/hyphenation/SimplePatternParser.java
index 6729da6e3..ae1d92721 100644
--- a/openpdf/src/main/java/com/lowagie/text/pdf/hyphenation/SimplePatternParser.java
+++ b/openpdf/src/main/java/com/lowagie/text/pdf/hyphenation/SimplePatternParser.java
@@ -97,7 +97,7 @@ public SimplePatternParser() {
public void parse(InputStream stream, PatternConsumer consumer) {
this.consumer = consumer;
- try (stream) {
+ try {
SimpleXMLParser.parse(this, stream);
} catch (IOException e) {
throw new ExceptionConverter(e);
diff --git a/pom.xml b/pom.xml
index cfff0c478..7a288f166 100644
--- a/pom.xml
+++ b/pom.xml
@@ -54,7 +54,7 @@
com.github.librepdf.openpdf.parent
- 11
+ 8
UTF-8
UTF-8
@@ -79,7 +79,9 @@
2.15.1
2.1.4
2.9
- 6.0.0
+
+ 5.0.0
1.0.24
1.5.4
1.0.5
@@ -260,13 +262,15 @@
-
+
org.apache.maven.plugins
maven-compiler-plugin
${maven.compiler.plugin.version}
- ${java.version}
+
+ ${java.version}
+ ${project.build.sourceEncoding}
-Xlint:unchecked
@@ -301,7 +305,7 @@
${maven-repository-plugin.version}
-
+
org.sonatype.plugins
nexus-staging-maven-plugin
@@ -344,6 +348,10 @@
true
+
+
+ com.lowagie.*;version="${project.version}"
+
@@ -419,9 +427,55 @@
- jdk17-plus
- [17,)
+ (,8]
+ true
+
+
+
+
+ org.mockito
+ mockito-core
+ ${mockito4.version}
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ ${maven.compiler.plugin.version}
+
+
+ compile-java-8
+
+ compile
+
+
+
+ 1.8
+ ${project.build.sourceEncoding}
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ 3.2.2
+
+ -Dfile.encoding=UTF-8
+
+
+
+
+
+
+ jdk9-plus
+
+ [8,)
@@ -439,18 +493,17 @@
maven-compiler-plugin
${maven.compiler.plugin.version}
- 17
+ 8
- compile-java-17
+ compile-java-9
compile
- 17
+ 8
- ${project.basedir}/src/main/java
true