Community
Participate
Working Groups
I'd like to restrict AspectJ to treat certain files in a jar file as aspects (not doing that blows the memory limit of the JVM): URL aspect = new URL("jar:file:/foo.jar!/baz/bam"); loader = new WeavingURLClassLoader(classpath, {aspectURL}, parent); The problem is that FileUtil.makeClassPath only takes the path component of a URL, thus ignoring the jar:// protocol. It also doesn't handle http or any other than file URLs properly, around line 1361: public static List makeClasspath(URL[] urls) { List ret = new LinkedList(); if (urls != null) { for (int i = 0; i < urls.length; i++) { ret.add(urls[i].getPath()); } } return ret; } The WeavingAdaptor then takes this Stringified URL and just treats it like a path to a local file, without handling any protocols (that are already no longer present in the URL).
If you submit a patch for it, I will look to integrate it.
unsetting the target field which is currently set for something already released