[jboss-dev-forums] [Design of POJO Server] - Re: Regression on VirtualFile.toURL()

jason.greene@jboss.com do-not-reply at jboss.com
Wed Feb 18 12:53:27 EST 2009


The URL spec doesn't care what the path represents. It only cares whether or not it is a directory, and that is determined by the use of /. So, if VFS returns a url with a slash at the end, it's a directory. The problem is that the JPA code assumes it's getting a file and not a directory. Although I can't blame it since it is making a call to DI.getFile(). 

The main problem with the VFS returning a jar url as a directory, is that it introduces ambiguity with a directory having the same name.

 


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211214#4211214

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211214



More information about the jboss-dev-forums mailing list