This is the mail archive of the
mauve-discuss@sources.redhat.com
mailing list for the Mauve project.
Re: Class.getInterfaces() on [[I
- To: mauve-discuss at sourceware dot cygnus dot com
- Subject: Re: Class.getInterfaces() on [[I
- From: Peter Naulls <peter at erble dot freeserve dot co dot uk>
- Date: Thu, 13 Jul 2000 13:04:30 +0100
In message <20000713013251.3722.qmail@web5403.mail.yahoo.com>
sharon wu <lotus_june@yahoo.com> wrote:
>
> Class clsss = Class.forName("[D");
> harness.check ( clsss.getInterfaces().length, 1 );
> }
> These codes want to check getInterfaces() for [[I and
> [D, and retrun interfaces should be one. I wonder what
> interface of array of array interger or array of
> Double should be return?
> Does anyone has any ideas?
Also 1. Arrays, regardless of dimension only implement 1 interface,
java.lang.Cloneable.
Peter
--
------------------------------------------------------------------------
Peter Naulls - peter@erble.freeserve.co.uk
Homepage - http://free.prohosting.com/~chocky/
Java for RISC OS and ARM - http://free.prohosting.com/~chocky/java/
Debian Linux on RiscPCs - http://www.erble.freeserve.co.uk/
------------------------------------------------------------------------