Checking URL existence in add-classpath #40

guv opened this Issue Aug 17, 2012 · 1 comment


None yet
2 participants

guv commented Aug 17, 2012

add-classpath does not check whether the given url (i.e. anything coercable via io/file) exists.
This complicates debugging of ClassNotFoundException which were due to a nonexistent url being added to the classpath.
If there is no use case that must work with a nonexistent url, add-classpath should be patched to throw an error for a nonexistent url.


cemerick commented Feb 20, 2013

There are some usage patterns where transient directories are used as catch-all "repositories" for classfiles to be dynamically picked up by a running application. Plus, checking for a file's existence at add-classpath-time won't help any resource resolution issues if it's deleted later.

@cemerick cemerick closed this Feb 20, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment