Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 41650 invoked from network); 20 Mar 2005 02:42:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Mar 2005 02:42:08 -0000 Received: (qmail 31081 invoked by uid 500); 20 Mar 2005 02:42:05 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 30898 invoked by uid 500); 20 Mar 2005 02:42:04 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 30791 invoked by uid 99); 20 Mar 2005 02:42:03 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=FROM_ENDS_IN_NUMS,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of gcaddd-derby-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 19 Mar 2005 18:42:03 -0800 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1DCqDU-0000eH-PS for derby-dev@db.apache.org; Sun, 20 Mar 2005 03:31:01 +0100 Received: from adsl-68-125-10-130.dsl.pltn13.pacbell.net ([68.125.10.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Mar 2005 03:31:00 +0100 Received: from rp0428 by adsl-68-125-10-130.dsl.pltn13.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Mar 2005 03:31:00 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: derby-dev@db.apache.org From: RPost Subject: Re: Any ideas for debugging a byte code generation problem Date: Sun, 20 Mar 2005 02:25:17 +0000 (UTC) Lines: 31 Message-ID: References: <4239E139.7090106@sbcglobal.net> <6.0.0.22.2.20050317141118.03058120@pop.rcn.com> <423AE167.4070307@sbcglobal.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 68.125.10.130 (Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)) Sender: news X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner-SpamScore: ss X-MailScanner-From: gcaddd-derby-dev@m.gmane.org X-MailScanner-To: derby-dev@db.apache.org X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Kathey Marsden writes: > > > > > Another thing I would try is paring down the query to make it as small > > as possible while still reproducing the problem. > > > > > Aye, there's the rub. In general with these byte code generation > problems it is the size of the query that is the problem. We are > dealing with strict JVM specification limits on things like method > sizes. So, we split methods into smaller methods and then we have too > many constants. Robbing Peter to pay Paul only works for so long. > > I create a java class with 30,000 constants of the form: int i1= 1,i2= 1,i3= 1,i4= 1,i5= 1,i6= 1,i7= 1,i8= 1,i9= 1,i10= 1; Java 1.3.1 compiles it ok but jad 1.5.7g gives an error when trying to decompile it. A dialog box titled 'Program Error' with 'jad.exe has generated errors and will be closed by Windows. You will need to restart the program. An error log is being created.' Couldn't find anything in the JVM spec about a limit on constants