[272] in java-interest

home help back first fref pref prev next nref lref last post

class Array

daemon@ATHENA.MIT.EDU (Peter Kessler)
Sat Jun 10 20:42:10 1995

Date: Sat, 10 Jun 1995 16:57:50 -0700
From: pbk@wombat.Eng.Sun.COM (Peter Kessler)
To: java-interest@java.Eng.Sun.COM

    The language spec says `In the class hierarchy there is a class named 
Array, which has one instance variable, "length".' (Section 3.3.1 Array 
Detail.)
    I would have thought, therefore, that I could have a method that took 
as a parameter an instance of any subclass of Array (e.g. any array 
instance), and the method would be able to determine the length of the 
array instance.  But I can't seem to find the class Array.  I thought it 
would be in java.lang.Array, but it doesn't seem to be anywhere.  Any hints?
    I can code around it in my case by passing the length of the array 
(rather than the array itself), but the spec should be fixed (or clarified).

			... peter
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post