From amiller@xis.xerox.com Wed Jun 3 19:41:11 1998 Received: from alpha.xerox.com (firewall-user@alpha.Xerox.COM [13.1.64.93]) by amber.ccs.neu.edu (8.8.6/8.8.6) with SMTP id TAA04830; Wed, 3 Jun 1998 19:41:06 -0400 (EDT) Received: from terminator.xis.xerox.com ([13.246.76.26]) by alpha.xerox.com with SMTP id <55133(5)>; Wed, 3 Jun 1998 16:40:42 PDT Received: from intergate.xis.xerox.com (intergate.xis.xerox.com [13.246.76.177]) by terminator.xis.xerox.com (8.8.4/8.8.4) with SMTP id TAA29233; Wed, 3 Jun 1998 19:31:09 -0400 (EDT) Received: from ccMail by intergate.xis.xerox.com (IMA Internet Exchange 2.12 Enterprise) id 0006EF03; Wed, 3 Jun 1998 19:31:22 -0400 Mime-Version: 1.0 Date: Wed, 3 Jun 1998 16:27:53 PDT Message-ID: <0006EF03.3399@xis.xerox.com> From: amiller@xis.xerox.com (Andrew Miller) Subject: Re[6]: Demjava To: Lars Thomas Hansen , Doug Orleans Cc: amiller@xis.xerox.com (Andrew Miller), lieber@ccs.neu.edu, com3362@ccs.neu.edu, dem@ccs.neu.edu Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Description: cc:Mail note part Status: R Content-Length: 1094 Bug report: I was able to make this declaration: foo = String String. Because I end up with two member's called "string", Java can't compile your generated code. Andrew ______________________________ Reply Separator _________________________________ Subject: Re: Re[4]: Demjava Author: Doug Orleans at intergate Date: 6/3/98 1:19 PM Lars Thomas Hansen writes: > > > Is there a way to delcare a traversal as "throws "? > > Without this capability I don't think Java will let me throw the > > exception. > > This capability was designed (but never implemented) for an earlier > version of Demeter/Java (see > http://www.ccs.neu.edu/home/lth/aao/index.html). You're right -- > without it, you won't be able to use exceptions in a sensible manner. You can, however, throw a RuntimeException (or a descendant), but Lars probably doesn't include this in "sensible". (And maybe I don't either, but it's a usable workaround for the time being.)