[jboss-dev-forums] [Design of POJO Server] - Re: JBAS-6061 or weird nested jar

alesj do-not-reply at jboss.com
Tue Jan 20 10:21:21 EST 2009


"jaikiran" wrote : I added a new test to the existing testcase org.jboss.test.virtual.test.ExceptionHandlerTestCase. Does this look good enough?
  | 
Aha, I see where the problem is.
It's this lines:
(*)

  | URL jarFileURL = getResource("/vfs/test/zipeinit.jar");
  | VFS jarFileVFS = VFS.getVFS(jarFileURL);
  | VirtualFile root = jarFileVFS.getRoot();
  | 
as you're by-passing previous cached root.

  | VFS parentFolderVFS = VFS.getVFS(parentFolderURL); // <-- CACHED HERE
  | 

We need to fix the code (btw: where is this?) that does this,
to use the right VFS method, the one that uses cache.
(*) should be re-written to use this:

  | URL jarFileURL = getResource("/vfs/test/zipeinit.jar");
  | VirtualFile root = VFS.getCachedFile(jarFileURL);
  | 

"jaikiran" wrote : 
  | P.S: I think there is a typo in this existing testcase:
  | // Jaikiran: Is this a typo? Or is this intentional? The _sqljdbc.jar should be sqljdbc.jar isn't it?
  |   | 
It doesn't matter actually.
With '_' it's just more precise on the fact that it matches only true temp names.

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

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



More information about the jboss-dev-forums mailing list