Specifier class, does it work?
Hi all,
I seem to have a problem with the specifier class.
It claims it recognises patterns like:
s1*s2* -- starts with s1, contains s2
However, that doesn't seem to work. To test it, I've
compiled the following very simple thingy:
import com.sun.tools.doclets.util.*;
public class kk {
public static void main(String args[]){
Specifier sp=new Specifier(args[0]);
System.out.println("Specifier: "+sp.toString());
boolean result=sp.match(args[1]);
System.out.println("Result: "+result);
}
}
Then compile and do:
>java kk "s*a*e" silice
Specifier: s*a*e
Result: true
The result, however, should be false, for there is no
"a" contained in the word "silice".
Does anybody know what's going on?
Cheers,
P.

