]> source.dussan.org Git - aspectj.git/commitdiff
Java 16 fix: ParseUtil.fileToEncodedURL(File) causes IllegalAccessError
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Sun, 21 Mar 2021 10:12:48 +0000 (17:12 +0700)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Sun, 21 Mar 2021 10:12:48 +0000 (17:12 +0700)
Migrate 'ParseUtil.fileToEncodedURL(f)' to 'f.toURI().toURL()'.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
testing-util/src/main/java/org/aspectj/testing/util/TestUtil.java

index e6587c4ee497b10a02e44a845416d56ad0f7c612..ddd6a7caf923353567e96134c34a4c619debaf96 100644 (file)
@@ -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) { }
                }