I haven't debugged it to find the cause. I guess it is all the manual parsingthat's in this code? :-)The problem occurs if you do
URL url = new URL("vfsmemory://MYID/directory); URL sub = new URL(url, "sub");
URL sub = new URL(url + "/sub");