From commits-return-56340-apmail-harmony-commits-archive=harmony.apache.org@harmony.apache.org Tue Oct 28 02:43:06 2008 Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 26794 invoked from network); 28 Oct 2008 02:43:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Oct 2008 02:43:05 -0000 Received: (qmail 71690 invoked by uid 500); 28 Oct 2008 02:43:10 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 71595 invoked by uid 500); 28 Oct 2008 02:43:09 -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 71586 invoked by uid 99); 28 Oct 2008 02:43:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Oct 2008 19:43:09 -0700 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Oct 2008 02:42:04 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8BC7B234C253 for ; Mon, 27 Oct 2008 19:42:44 -0700 (PDT) Message-ID: <1070916206.1225161764571.JavaMail.jira@brutus> Date: Mon, 27 Oct 2008 19:42:44 -0700 (PDT) From: "Kevin Zhou (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-6000) [classlib] [luni] java.lang.reflect.Proxy.getProxyClass(...) fails to create new proxy instance in default package In-Reply-To: <1974361175.1224565964801.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6000?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kevin Zhou closed HARMONY-6000. ------------------------------- > [classlib] [luni] java.lang.reflect.Proxy.getProxyClass(...) fails to create new proxy instance in default package > ------------------------------------------------------------------------------------------------------------------ > > Key: HARMONY-6000 > URL: https://issues.apache.org/jira/browse/HARMONY-6000 > Project: Harmony > Issue Type: Bug > Components: Classlib > Affects Versions: 5.0M7 > Reporter: Kevin Zhou > Assignee: Tim Ellison > Fix For: 5.0M7, 5.0M8 > > Attachments: HARMONY-6000.diff > > Original Estimate: 24h > Remaining Estimate: 24h > > Given a test case [1] and two interfaces [2] [3] in default package. > (1) Run test case [1] on [2], both of HY5's and RI's Proxy work well. > (2) Run test case [1] on [3], HY5' Proxy fails [4] while RI works well. > In conclusion, this is only a problem when the interfaces are undeclared "public" and located in the default package. > Note: The reported defect only happened when the interface is undeclared "public" and located in default package. Thus please put this test case in the default package. > Would you please help to review this patch? > [1]. testcase > public class ProxyTest extends TestCase { > public void test_getProxyClass_DefaultPackage() { > Class pc = Proxy.getProxyClass(DefaultPkgIntf.class.getClassLoader(), > new Class[] { DefaultPkgIntf.class }); > } > } > [2]. declared "public" DefaultPkgIntf in default package > public interface DefaultPkgIntf { > } > [3] undeclared "public" DefaultPkgIntf in default package > interface DefaultPkgIntf { > } > [4] > java.lang.ClassFormatError: JVMCFRE068 invalid class class=/$Proxy0?offset=0 > at java.lang.reflect.Proxy.defineClassImpl(Native Method) > at java.lang.reflect.Proxy.getProxyClass(Proxy.java:154) > at ProxyTest.test_getProxyClass_DefaultPackage(Proxy2Test.java:9) > at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:197) > at java.lang.reflect.Method.invoke(Method.java:238)] -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.