diff --git a/junit5.changes b/junit5.changes index fa176ba..d04764d 100644 --- a/junit5.changes +++ b/junit5.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Oct 26 12:21:48 UTC 2023 - Fridrich Strba + +- Added patch: + * unreported-exception.patch fix unreported exception error that + is fatal with JDK 21 + ------------------------------------------------------------------- Mon Sep 11 10:40:34 UTC 2023 - Fridrich Strba diff --git a/junit5.spec b/junit5.spec index 1c70b04..f3372bb 100644 --- a/junit5.spec +++ b/junit5.spec @@ -50,6 +50,7 @@ Source304: https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter-p Source400: https://repo1.maven.org/maven2/org/junit/vintage/junit-vintage-engine/%{vintage_version}/junit-vintage-engine-%{vintage_version}.pom # BOM POM Source500: https://repo1.maven.org/maven2/org/junit/junit-bom/%{version}/junit-bom-%{version}.pom +Patch0: unreported-exception.patch BuildRequires: asciidoc BuildRequires: fdupes BuildRequires: maven-local @@ -92,6 +93,7 @@ JUnit 5 User Guide. %prep %setup -q -n %{name}-r%{version} +%patch0 -p1 find -name \*.jar -delete cp -p %{SOURCE100} pom.xml diff --git a/unreported-exception.patch b/unreported-exception.patch new file mode 100644 index 0000000..089c4ef --- /dev/null +++ b/unreported-exception.patch @@ -0,0 +1,11 @@ +--- junit5-r5.8.2/junit-platform-launcher/src/main/java/org/junit/platform/launcher/TestIdentifier.java 2023-10-26 14:17:20.653152124 +0200 ++++ junit5-r5.8.2/junit-platform-launcher/src/main/java/org/junit/platform/launcher/TestIdentifier.java 2023-10-26 14:18:08.740160341 +0200 +@@ -316,7 +316,7 @@ + } + + @SuppressWarnings("unchecked") +- private SerializedForm(ObjectInputStream.GetField fields) throws IOException { ++ private SerializedForm(ObjectInputStream.GetField fields) throws ClassNotFoundException, IOException { + this.uniqueId = (String) fields.get("uniqueId", null); + this.parentId = (String) fields.get("parentId", null); + this.displayName = (String) fields.get("displayName", null);