classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Class.getComponentType


From: John Leuner
Subject: Re: Class.getComponentType
Date: Mon, 20 Aug 2001 12:54:59 +0000
User-agent: Mutt/1.3.18i

> The code provided for java.lang.Class.getComponentType doesn't work for
> arrays of primitives.  Simply stripping off one bracket doesn't work,
> because for instance "[[I" becomes "[I" and then finally "I", which is not
> the name of int's type.  (In fact, I don't think it works for
> non-primitives either, because arrays of class instances still have the
> class name in "L%s;" format.)
> 
> Sorry I don't have a patch for you, but I implemented mine natively, so it
> wouldn't be much use anyway.

I believe that we discussed this earlier, and that a patch is in CVS?

John



reply via email to

[Prev in Thread] Current Thread [Next in Thread]