[jboss-dev-forums] [Design the new POJO MicroContainer] - Re:
alesj
do-not-reply at jboss.com
Fri Nov 7 04:14:27 EST 2008
OK, fixed.
I'll do new CR release, making it easy on everybody.
Is there any other dot feature out there that I should consider legal?
I'll still leave triple '...' and '..somepath' as illegal:
| else if (ch == '.')
| {
| int bufferLength = buffer.length();
|
| if (specialToken == null && bufferLength == 0)
| specialToken = CURRENT_PATH;
| else if (specialToken == CURRENT_PATH && bufferLength == 0)
| specialToken = REVERSE_PATH;
| else if (specialToken == REVERSE_PATH && bufferLength == 0)
| throw new IllegalArgumentException("Illegal token (" + specialToken + ch + ") in path: " + path);
| else
| buffer.append(ch);
| }
| else
| {
| // token starts with '.' or '..', but also has some path after that
| if (specialToken != null)
| {
| // we don't allow tokens after '..'
| if (specialToken == REVERSE_PATH)
| throw new IllegalArgumentException("Illegal token (" + specialToken + ch + ") in path: " + path);
|
| // after '.' more path is legal == unix hidden directories
| buffer.append(specialToken);
| specialToken = null;
| }
| buffer.append(ch);
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187620#4187620
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187620
More information about the jboss-dev-forums
mailing list