[shrinkwrap-issues] [JBoss JIRA] Resolved: (SHRINKWRAP-106) ClassContainer "addClass" methods do not account for inner classes

Andrew Lee Rubinger (JIRA) jira-events at lists.jboss.org
Tue Dec 15 11:49:30 EST 2009


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

Andrew Lee Rubinger resolved SHRINKWRAP-106.
--------------------------------------------

    Resolution: Done


> ClassContainer "addClass" methods do not account for inner classes
> ------------------------------------------------------------------
>
>                 Key: SHRINKWRAP-106
>                 URL: https://jira.jboss.org/jira/browse/SHRINKWRAP-106
>             Project: ShrinkWrap
>          Issue Type: Bug
>    Affects Versions: 1.0.0-alpha-2
>            Reporter: Andrew Lee Rubinger
>            Assignee: Andrew Lee Rubinger
>             Fix For: 1.0.0-alpha-3
>
>
> Assuming:
> public class TopLevelClass
> {
>    private static class InnerClass{}
> }
> ...and:
> getClassContainer().addClasses(TopLevelClass.class);
> log.info(getArchive().toString(true));
> ...output is:
> test at jboss:/$ ls -l f59005e3-0dcc-417e-84fd-2f35ab8ae18f.jar
> f59005e3-0dcc-417e-84fd-2f35ab8ae18f.jar:
> /org/jboss/shrinkwrap/impl/base/spec/TopLevelClass.class
> This is especially problematic where the caller cannot access the inner class due to visibility constraints.  It'll be missing from the runtime.  Discuss the rules we should apply (regarding hierarchy) on the forum.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the shrinkwrap-issues mailing list