From 0eb5ce72848d730da5bd6d42902fdd6a8a42055d Mon Sep 17 00:00:00 2001 From: Marc Philipp Date: Sun, 15 May 2022 14:00:03 +0200 Subject: [PATCH] Fix compile error on JDK 18 and later Resolves #1739. --- src/main/java/org/junit/runner/Result.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/junit/runner/Result.java b/src/main/java/org/junit/runner/Result.java index 4b5f4a406238..ff53b084375f 100644 --- a/src/main/java/org/junit/runner/Result.java +++ b/src/main/java/org/junit/runner/Result.java @@ -188,7 +188,7 @@ public SerializedForm(Result result) { } @SuppressWarnings("unchecked") - private SerializedForm(ObjectInputStream.GetField fields) throws IOException { + private SerializedForm(ObjectInputStream.GetField fields) throws IOException, ClassNotFoundException { fCount = (AtomicInteger) fields.get("fCount", null); fIgnoreCount = (AtomicInteger) fields.get("fIgnoreCount", null); assumptionFailureCount = (AtomicInteger) fields.get("assumptionFailureCount", null);