From owner-freebsd-java@FreeBSD.ORG Tue May 11 03:37:36 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B22F216A4CE for ; Tue, 11 May 2004 03:37:36 -0700 (PDT) Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57BCC43D4C for ; Tue, 11 May 2004 03:37:36 -0700 (PDT) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk ([137.222.16.62]) by dire.bris.ac.uk with esmtp (Exim 4.34) id 1BNUdb-0000tB-Mg; Tue, 11 May 2004 11:37:30 +0100 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 3.16 #1) id 1BNUYh-0000RY-00; Tue, 11 May 2004 11:32:23 +0100 Date: Tue, 11 May 2004 11:32:23 +0100 (BST) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: Achilleus Mantzios In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: Jan Grant X-Spam-Score: 0.0 X-Spam-Level: / cc: Jayprakash_Gonella cc: freebsd-java@freebsd.org Subject: Re: Adding Object to a Vector X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 May 2004 10:37:36 -0000 On Tue, 11 May 2004, Achilleus Mantzios wrote: > O kyrios Jayprakash_Gonella egrapse stis May 11, 2004 : > > > Hi, > > May this is not the proper forum for my question. > > > > Can any body explain the internal representation (memory-wise) of a Vector > > in Java? How does a Vector class implement a growable array of objects? > > Since you are of the lucky guys working with java in FreeBSD just do: > > vi > /usr/ports/java/jdk14/work/j2se/src/share/classes/java/util/Vector.java I _believe_ that the source of java.util.Vector is shipped with the binary distributions of the JDK from Sun, so (if you haven't already) you can probably get that and you don't quite have to sign your soul away to Sun to the same extent as getting the full source to the JDK requires. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ There's no convincing English-language argument that this sentence is true.