From commits-return-62510-apmail-harmony-commits-archive=harmony.apache.org@harmony.apache.org Tue Jun 01 19:25:04 2010 Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 83703 invoked from network); 1 Jun 2010 19:25:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Jun 2010 19:25:03 -0000 Received: (qmail 57809 invoked by uid 500); 1 Jun 2010 19:25:03 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 57785 invoked by uid 500); 1 Jun 2010 19:25:03 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 57752 invoked by uid 99); 1 Jun 2010 19:25:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jun 2010 19:25:03 +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; Tue, 01 Jun 2010 19:25:01 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o51JOel9022564 for ; Tue, 1 Jun 2010 19:24:40 GMT Message-ID: <15427426.112371275420280247.JavaMail.jira@thor> Date: Tue, 1 Jun 2010 15:24:40 -0400 (EDT) From: "Mark Hindess (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-6533) [classlib] [luni] Proxy.getProxyClass's interfaces paramter should be declared as varargs In-Reply-To: <30296726.101381275389798630.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/HARMONY-6533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12874174#action_12874174 ] Mark Hindess commented on HARMONY-6533: --------------------------------------- I've merge the change to the java6 branch at r950206, so this build should have the fix in it: http://hudson.zones.apache.org/hudson/job/Harmony-1.6-head-linux-x86_64/238/ > [classlib] [luni] Proxy.getProxyClass's interfaces paramter should be declared as varargs > ----------------------------------------------------------------------------------------- > > Key: HARMONY-6533 > URL: https://issues.apache.org/jira/browse/HARMONY-6533 > Project: Harmony > Issue Type: Bug > Components: Classlib > Affects Versions: 6.0M1 > Reporter: Andreas Sewe > Assignee: Mark Hindess > Priority: Minor > Fix For: 6.0M3, 5.0M15 > > > Currently, java.lang.reflect.Proxy.getProxyClass accepts an array of Class as its second argument: interfaces. According to the Java SE 6 API, however, interfaces should be a varargs parameter. This might not matter in a lot of cases, but it confuses the Scala compiler (scalac) big-time, making it impossible to compile the Scala library against the Apache Harmony classlib (note the array of arrays scalac mistakenly requires): > found : Array[java.lang.Class[_]] > required: Array[_ <: Array[java.lang.Class[_]]] > java.lang.reflect.Proxy.getProxyClass(cl, ifaces: _*) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.