[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: ClassCastException for char[] MetaValue creation

alesj do-not-reply at jboss.com
Wed Aug 8 03:48:04 EDT 2007


"scott.stark at jboss.org" wrote : 
  | I also ran across JBMICROCONT-123 which is about improving the implementation, but this is actually a bug as this method does not work at all. The depth argument to Array.newInstance is the array length, not a depth for the array dimension.
  | 
  |   |    public static Class getArrayClass(Class clazz, int depth)
  |   |    {
  |   |       return Array.newInstance(clazz, depth).getClass();
  |   |    }
  |   | 
  | 

What's the deal with this one then?
I saw you did an assignment ping-pong. :-)
Do you need it fixed right away?
How come we didn't see this (The depth argument to Array.newInstance is the array length, not a depth for the array dimension.) before? ;-)

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

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



More information about the jboss-dev-forums mailing list