[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: VFS - minor performance improvement

alesj do-not-reply at jboss.com
Thu Jan 17 11:02:13 EST 2008


Should I return null for reverse path tokens going over the top as well?

  |          if (PathTokenizer.isReverseToken(tokens[index))
  |          {
  |             VirtualFileHandler parent = current.getParent();
  |             if (parent == null) // TODO - still IOE or null?
  |                throw new IOException("Using reverse path on top file handler: " + current + ", " + path);
  |             else
  |                current = parent;
  |          }
  | 
I guess since this is a rare usage, and you probably expect the reverse path to work, I could be still useful to throw IOE.

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

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



More information about the jboss-dev-forums mailing list