[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Too strict pattern matching in PackageClassFilter

alesj do-not-reply at jboss.com
Mon Sep 22 07:17:35 EDT 2008


"alesj" wrote : Result: filter on package doesn't pick up package itself.
  | 
Or is this intentional?

Since I see class name matching behave this way:

  |    public void testJavaLang() throws Exception
  |    {
  |       ClassFilter filter = PackageClassFilter.createPackageClassFilter("java.lang");
  |       assertFilterMatchesClassName("java.lang.Object", filter);
  |       assertFilterMatchesClassName("java.lang.X", filter);
  |       assertFilterNoMatchClassName("java.lang", filter);
  |       assertFilterNoMatchClassName("java.lang.", filter);
  | 

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

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



More information about the jboss-dev-forums mailing list