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

alesj do-not-reply at jboss.com
Mon Sep 22 05:58:05 EDT 2008


While fixing this issue:
 - https://jira.jboss.org/jira/browse/JBCL-32
I came across package matching issue with the following config:

Part of my path:
ClassLoaderUtils.packageNameToPath(A.class.getName()) --> org/jboss/test/classloading/dependency/support/a

My include filter:
new PackageClassFilter(new String[]{A.class.getPackage().getName()}) --> org/jboss/test/classloading/dependency/support/a/[^/]+

Result: filter on package doesn't pick up package itself.

There are two issues:
1) the last / in pattern --> should be made optional
2) + in pattern --> should be *



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

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



More information about the jboss-dev-forums mailing list