[shrinkwrap-issues] [JBoss JIRA] Assigned: (SHRINKWRAP-233) addClass with DefaultPackage opens addPackage to null arguments

Andrew Rubinger (JIRA) jira-events at lists.jboss.org
Mon Jul 11 12:44:23 EDT 2011


     [ https://issues.jboss.org/browse/SHRINKWRAP-233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Rubinger reassigned SHRINKWRAP-233:
------------------------------------------

    Assignee: Ivan Pazmino


> addClass with DefaultPackage opens addPackage to null arguments
> ---------------------------------------------------------------
>
>                 Key: SHRINKWRAP-233
>                 URL: https://issues.jboss.org/browse/SHRINKWRAP-233
>             Project: ShrinkWrap
>          Issue Type: Bug
>            Reporter: Aslak Knutsen
>            Assignee: Ivan Pazmino
>
> When adding a Class in addClass, we do a addPackage with a Filter to match inner classes of that class.
> When adding a Class in Default package, the Package we padd to addPackage is null. Meaning addPackage can't verify non null values. 
> The downside is, if someone happens to add, e.g.
> addPakcage(true, Package.get("some-missing-package")), addPackage will be called with null, and null means /, which means all found packages are added.
> We need to split addPackage(boolean, Filter, Package...) into two methods, one external which does the null checks from the user and one internal that does not check for null(to support Class in default package).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the shrinkwrap-issues mailing list