File: 18-java-compatibility.patch

package info (click to toggle)
junit5 5.10.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 14,748 kB
  • sloc: java: 98,014; xml: 1,840; sh: 148; ruby: 111; javascript: 59; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 742 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Fixes the compatibility with the latest version of Java
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: no
--- a/junit-platform-launcher/src/main/java/org/junit/platform/launcher/TestIdentifier.java
+++ b/junit-platform-launcher/src/main/java/org/junit/platform/launcher/TestIdentifier.java
@@ -318,7 +318,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);