🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17337

Constructor referencing

#17337
From: Leo Cohen
Date: Tue, 01 Dec 1998 00:00
28 lines
1172 bytes
I have a class, ViewManager with the constructor

   public ViewManager(int view, String rootPath, Point locale) { ... }

I want to include a second, convenience constructor as follows:

   public ViewManager(int view, String rootPath, Point locale, UIMgr
uiMgr) {
      ... // set up things based on uiMgr
      this(view,rootPath,locale);
   }      

However, the compiler tells me 

	"method required, but value found."

So, how do I reference a constructor with a different signature from
inside a class?
-- 
Leo Cohen

116-1 Howard Drive
Charlottesville, VA  22903

804-243-8922 (UVA)
804-244-4648 (home)
804-244-7922 (fax)
lcohen@cs.virginia.edu
Technical Details
Message-ID: <366401ED.5D109EAB@cs.virginia.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,960f2d2dcd521e5a,start
X-Google-Attributes: gidf74b3,public
From: Leo Cohen <lcohen@cs.virginia.edu>
Subject: Constructor referencing
Date: 1998/12/01
Message-ID: <366401ED.5D109EAB@cs.virginia.edu>
X-Deja-AN: 417481679
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language