classpath
[Top][All Lists]
Advanced

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

Re: Problem in Class.java


From: John Leuner
Subject: Re: Problem in Class.java
Date: Wed, 25 Apr 2001 22:18:46 +0000
User-agent: Mutt/1.3.15i

On Tue, Apr 24, 2001 at 07:59:21PM -0600, Tom Tromey wrote:
> >>>>> "John" == John Leuner <address@hidden> writes:
> 
> John> The method in vm/reference/java/lang/Class.java:
> John>    public Class getComponentType() {
> John>         if(isArray()) {
> John>             try {
> John>                 return Class.forName(getName().substring(1));
> John>             } catch(ClassNotFoundException e) {
> John>                 return null;
> John>             }
> John>         } else {
> John>             return null;
> John>         }
> John>     }
> John> is wrong.
> 
> I don't have any comment on this code per se; libgcj has its own
> java.lang.Class implementation.
> 
> However I do think it would be cool to have Mauve tests for this sort
> of thing.  There might be some in there already, but I don't know how
> complete they might be.

I quickly looked at the tests, and they don't seem to check for this. I will 
try to write some tests and submit them.

John Leuner

-- 



reply via email to

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