From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12309 invoked by alias); 11 Feb 2002 18:31:57 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 12160 invoked from network); 11 Feb 2002 18:31:54 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 11 Feb 2002 18:31:54 -0000 Received: from drow by nevyn.them.org with local (Exim 3.34 #1 (Debian)) id 16aLEy-0004MK-00; Mon, 11 Feb 2002 13:31:48 -0500 Date: Mon, 11 Feb 2002 10:31:00 -0000 From: Daniel Jacobowitz To: Tom Tromey Cc: gdb-patches@sources.redhat.com, per@bothner.com Subject: Re: Fix PR gdb/265, 64-bit pointers in Java Message-ID: <20020211133148.A16621@nevyn.them.org> Mail-Followup-To: Tom Tromey , gdb-patches@sources.redhat.com, per@bothner.com References: <20020211003818.A26546@nevyn.them.org> <87k7tjj1on.fsf@creche.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87k7tjj1on.fsf@creche.redhat.com> User-Agent: Mutt/1.3.23i X-SW-Source: 2002-02/txt/msg00330.txt.bz2 On Mon, Feb 11, 2002 at 11:47:20AM -0700, Tom Tromey wrote: > >>>>> "Daniel" == Daniel Jacobowitz writes: > > Daniel> I don't know if Java allows the implicit 0x123456789 -> > Daniel> 0x123456789L conversion that we all know and love in C > > Nope. In Java an integer constant which is too big for its type is an > error. > > Daniel> but it certainly behooves us to act that way on the command > Daniel> line. > > If/when we implement method invocation, won't this mean we could > silently call the wrong overloaded method? Only if the user specifies a constant too large. Normal constants are still maintained as java_int_type. But if that becomes an issue we can add a flag to parse_number later to conditionalize this, and modify the parser appropriately. x/i (for instance) should always accept 64-bit constants. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer