Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 32304 invoked from network); 22 Feb 2011 19:23:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Feb 2011 19:23:01 -0000 Received: (qmail 33386 invoked by uid 500); 22 Feb 2011 19:23:01 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 32642 invoked by uid 500); 22 Feb 2011 19:23:00 -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 32344 invoked by uid 99); 22 Feb 2011 19:22:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Feb 2011 19:22:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Feb 2011 19:22:58 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id ACB5E1B2856 for ; Tue, 22 Feb 2011 19:22:38 +0000 (UTC) Date: Tue, 22 Feb 2011 19:22:38 +0000 (UTC) From: "Lily Wei (JIRA)" To: derby-dev@db.apache.org Message-ID: <1153189346.9020.1298402558704.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <210749135.2558.1298093078521.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Commented: (DERBY-5061) [patch] make descriptive messages better regarding arrays by showing array contents rather than reference info MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-5061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997983#comment-12997983 ] Lily Wei commented on DERBY-5061: --------------------------------- After apply the patch, I got the following compiling errors: compile_types: [javac] Compiling 1 source file to c:\derby2\trunk\classes [javac] c:\derby2\trunk\java\engine\org\apache\derby\catalog\types\RowMultiS etImpl.java:99: toString() in java.lang.Object cannot be applied to (java.lang.S tring[]) [javac] throw new IllegalArgumentException( "Bad args: columnNam es = " + Arrays.toString(columnNames) + ". types = " + Arrays.toString(types) ); [javac] ^ [javac] c:\derby2\trunk\java\engine\org\apache\derby\catalog\types\RowMultiS etImpl.java:99: toString() in java.lang.Object cannot be applied to (org.apache. derby.catalog.TypeDescriptor[]) [javac] throw new IllegalArgumentException( "Bad args: columnNam es = " + Arrays.toString(columnNames) + ". types = " + Arrays.toString(types) ); Could this be requiring changing the build script? i.e. build.xml? Please feel free to add any suggestion. > [patch] make descriptive messages better regarding arrays by showing array contents rather than reference info > -------------------------------------------------------------------------------------------------------------- > > Key: DERBY-5061 > URL: https://issues.apache.org/jira/browse/DERBY-5061 > Project: Derby > Issue Type: Improvement > Components: Network Server > Affects Versions: 10.7.1.1 > Reporter: Dave Brosius > Priority: Trivial > Fix For: 10.8.0.0 > > Attachments: better_messages_w_arrays.diff > > Original Estimate: 1h > Remaining Estimate: 1h > > various spots in the code strings are generated for debug - level info with the value of arrays. > However, the information generated is just the array's reference not the array content. > patch changes this to the array contents. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira