From 01283150755102e2280e8a864a436a91a8e50278 Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Sun, 21 Mar 2021 17:12:48 +0700 Subject: Java 16 fix: ParseUtil.fileToEncodedURL(File) causes IllegalAccessError Migrate 'ParseUtil.fileToEncodedURL(f)' to 'f.toURI().toURL()'. Signed-off-by: Alexander Kriegisch --- testing-util/src/main/java/org/aspectj/testing/util/TestUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testing-util') diff --git a/testing-util/src/main/java/org/aspectj/testing/util/TestUtil.java b/testing-util/src/main/java/org/aspectj/testing/util/TestUtil.java index e6587c4ee..ddd6a7caf 100644 --- a/testing-util/src/main/java/org/aspectj/testing/util/TestUtil.java +++ b/testing-util/src/main/java/org/aspectj/testing/util/TestUtil.java @@ -399,7 +399,7 @@ public final class TestUtil { // use the non-canonicalized filename } try { - urls[count++] = ParseUtil.fileToEncodedURL(f); + urls[count++] = f.toURI().toURL(); } catch (IOException x) { } } -- cgit v1.2.3