[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 13:22:49 EST 2009


Looking at this in more detail, the JPA code is definitely wrong and an ugly hack, no matter the decision on the trailing /:


  | URL url = di.getFile("").toURL();
  | return new URL(url, jar);
  | 

It should instead be calling getParent().getFile(jar);


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

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



More information about the jboss-dev-forums mailing list