[shrinkwrap-issues] [JBoss JIRA] Created: (SHRINKWRAP-260) Anti-pattern use of getPackage

Carlo de Wolf (JIRA) jira-events at lists.jboss.org
Tue Mar 15 12:14:45 EDT 2011


Anti-pattern use of getPackage
------------------------------

                 Key: SHRINKWRAP-260
                 URL: https://issues.jboss.org/browse/SHRINKWRAP-260
             Project: ShrinkWrap
          Issue Type: Bug
            Reporter: Carlo de Wolf


ClassContainer.addPackage suffers from an anti-pattern, because Package.getPackage returns null if no classes have been loaded from that package yet.

As an example see org.jboss.jsfunit.arquillian.JSFUnitApplicationArchiveProcessor.

--
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