classpath
[Top][All Lists]
Advanced

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

Re: java.lang.Class comment bug


From: Brian Jones
Subject: Re: java.lang.Class comment bug
Date: 26 Jul 2001 22:46:58 -0400
User-agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7

John Keiser <address@hidden> writes:

> On 26 Jul 2001 18:00:59 -0400, Brian Jones wrote:
> > Patrick Doyle <address@hidden> writes:
> > 
> > > The comments in vm/reference/java/lang/Class.java say this:
> > > 
> > >    The name of an array class is <CODE>[&lt;type name&gt;</CODE> ... for
> > >    example, String[]'s class is <CODE>[java.lang.String</CODE>.
> > > 
> > > According to the J2SE documentation, the name of an array class uses the
> > > name of the element type in "Java signature format".  Thus, String[]'s
> > > class should be "[Ljava.lang.String;".
> > > 
> > > Note that this is still not the same name as would appear in a constant
> > > pool entry, because that would use slashes instead of periods.
> > 
> > I changed the javadoc entry, thanks.
> > 
> > Brian
> 
> Does our implementation actually do it this way?  And how does Sun's
> Java behave?  I remember this seeming strange to me when I wrote the
> doc.

No idea.  That would be what a mauve test case is for.

Brian
-- 
Brian Jones <address@hidden>



reply via email to

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