Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 85540 invoked from network); 4 Aug 2010 12:28:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Aug 2010 12:28:50 -0000 Received: (qmail 77921 invoked by uid 500); 4 Aug 2010 12:28:50 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 77538 invoked by uid 500); 4 Aug 2010 12:28:47 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 77291 invoked by uid 99); 4 Aug 2010 12:28:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Aug 2010 12:28:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Aug 2010 12:28:43 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o74CSM9H027923 for ; Wed, 4 Aug 2010 12:28:22 GMT Message-ID: <1195032.156681280924902053.JavaMail.jira@thor> Date: Wed, 4 Aug 2010 08:28:22 -0400 (EDT) From: "James Carman (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (LANG-639) Compile error using ArrayUtils.add In-Reply-To: <30499153.150991280893216520.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LANG-639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12895233#action_12895233 ] James Carman commented on LANG-639: ----------------------------------- For issues such as this, please use commons user email list (http://commons.apache.org/lang/mail-lists.html) for support. If we determine that there is a true bug/issue with the code, we'll urge you to open up a JIRA. > Compile error using ArrayUtils.add > ---------------------------------- > > Key: LANG-639 > URL: https://issues.apache.org/jira/browse/LANG-639 > Project: Commons Lang > Issue Type: Bug > Affects Versions: 2.5 > Environment: jdk 6 > Reporter: Zhongxian Gu > Original Estimate: 24h > Remaining Estimate: 24h > > Hi, > Sorry for bothering. I've googled it but cannot find the solution. I am new to commons.lang. > I tried to use ArrayUtils.add(arrString, aString); but got the following compile error. (Here arrString is a type of String[], and aString type of String) > incompatible types > found : java.lang.Object[] > required: java.lang.String[] > String[] sa = ArrayUtils.add(arrString, aString); > I've also tried other types. All have this compile error. I don't know why. > Thanks. > Best > Zhongxian -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.