[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Silent failover on broken jar file

alesj do-not-reply at jboss.com
Tue Mar 11 11:40:12 EDT 2008


"scott.stark at jboss.org" wrote : I don't know what file.isFile() api your talking about, VirtualFile or java.io.File. So looking for this statement in the vfs codebase, I find it in FileSystemContext.createVirtualFileHandler. and there it is java.io.File.isFile(). So for that usage, yes, we know whether its an unpacked jar or not. For that IOException, I don't know why we fall back to treating the corrupt jar as a non-structured file. 
  | 
Yeah, sorry about that - not being precise enough.
That's the code I'm talking about. ;-)
Beats me too why we would do that. I did a simple fix, at least providing some more info in that debug msg.
But I think we should just fail.

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

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



More information about the jboss-dev-forums mailing list