Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 94535 invoked from network); 21 Apr 2007 23:13:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Apr 2007 23:13:53 -0000 Received: (qmail 10912 invoked by uid 500); 21 Apr 2007 23:13:59 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 10875 invoked by uid 500); 21 Apr 2007 23:13:59 -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: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 10866 invoked by uid 99); 21 Apr 2007 23:13:59 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Apr 2007 16:13:59 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [68.142.198.204] (HELO smtp105.sbc.mail.mud.yahoo.com) (68.142.198.204) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 21 Apr 2007 16:13:51 -0700 Received: (qmail 52811 invoked from network); 21 Apr 2007 23:13:29 -0000 Received: from unknown (HELO ?127.0.0.1?) (ddebrunner@sbcglobal.net@67.116.253.117 with plain) by smtp105.sbc.mail.mud.yahoo.com with SMTP; 21 Apr 2007 23:13:29 -0000 X-YMail-OSG: n0y2hzMVM1mhG9zWSkqhS__u0WQmP13Wvjgqwxt2V8K2Brw2W5yi65qDpJKgVK1Sm_NDCcbMmM4QJtBf4XTuwPsxjIwk3v2LeKPFX89k8g7xelm5KKy8qDTniUH2SQ-- Message-ID: <462A9A56.7000603@apache.org> Date: Sat, 21 Apr 2007 16:12:22 -0700 From: Daniel John Debrunner User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: derby-dev@db.apache.org Subject: Re: Looking at the code generated by the code generation phase References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Mamta Satoor wrote: > Hi, > > Derby compiler generates byte code during code generation phase. My > question is how can one look at that generated code in human readable > form, say in Java language? Also, where is this generated code kept in > the file system? There is a debug flag to dump the generated byte code into a class file, called 'DumpClassFile'. I think derby.system.home needs to be set as well. Then the byte code for the classpath can be inspected using javap, see this posting for details. http://mail-archives.apache.org/mod_mbox/db-derby-dev/200512.mbox/%3C2056764124.1133476591541.JavaMail.jira@ajax.apache.org%3E The byte code for Derby's generated classes doesn't always naturally map to Java source code, so while one could try a java decompiler on the class file, it may not be that readable. HTH, Dan.