diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2021-03-21 17:12:48 +0700 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2021-03-21 17:12:48 +0700 |
commit | 01283150755102e2280e8a864a436a91a8e50278 (patch) | |
tree | 507b5616d9f6a7c025adadd7f9e71ffae915d469 /testing-util/src | |
parent | f280ff3efd643b17e88d0f7814b81ff62fa3770b (diff) | |
download | aspectj-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/src')
-rw-r--r-- | testing-util/src/main/java/org/aspectj/testing/util/TestUtil.java | 2 |
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) { } } |