aboutsummaryrefslogtreecommitdiffstats
path: root/testing-util
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2021-03-21 17:12:48 +0700
committerAlexander Kriegisch <Alexander@Kriegisch.name>2021-03-21 17:12:48 +0700
commit01283150755102e2280e8a864a436a91a8e50278 (patch)
tree507b5616d9f6a7c025adadd7f9e71ffae915d469 /testing-util
parentf280ff3efd643b17e88d0f7814b81ff62fa3770b (diff)
downloadaspectj-01283150755102e2280e8a864a436a91a8e50278.tar.gz
aspectj-01283150755102e2280e8a864a436a91a8e50278.zip
Java 16 fix: ParseUtil.fileToEncodedURL(File) causes IllegalAccessError
Migrate 'ParseUtil.fileToEncodedURL(f)' to 'f.toURI().toURL()'. Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'testing-util')
-rw-r--r--testing-util/src/main/java/org/aspectj/testing/util/TestUtil.java2
1 files changed, 1 insertions, 1 deletions
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) { }
}