[jboss-jira] [JBoss JIRA] Updated: (JBMICROCONT-123) Better mechanism to determine Array class

Scott M Stark (JIRA) jira-events at lists.jboss.org
Tue Aug 7 16:01:55 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBMICROCONT-123?page=all ]

Scott M Stark updated JBMICROCONT-123:
--------------------------------------

               Issue Type: Bug  (was: Task)
    JBoss Forum Reference: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071717
                 Assignee: Scott M Stark  (was: Ales Justin)

This is actually a bug as this method does not work. See the org.jboss.test.classinfo.test.ClassInfoArrayTest.testArrayType() test.


> Better mechanism to determine Array class
> -----------------------------------------
>
>                 Key: JBMICROCONT-123
>                 URL: http://jira.jboss.com/jira/browse/JBMICROCONT-123
>             Project: JBoss MicroContainer
>          Issue Type: Bug
>          Components: BeanInfo
>    Affects Versions: JBossMC_2_0_0 Beta
>            Reporter: Adrian Brock
>         Assigned To: Scott M Stark
>            Priority: Minor
>             Fix For:  JBossMC-2.2.0.GA
>
>
> The current implementation of getArrayClass uses the horrible
>    public static Class getArrayClass(Class clazz, int depth)
>    {
>       return Array.newInstance(clazz, depth).getClass();
>    }
> there must be a better way to do this?

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

        



More information about the jboss-jira mailing list