Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 54056 invoked from network); 7 Aug 2006 10:50:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Aug 2006 10:50:56 -0000 Received: (qmail 38688 invoked by uid 500); 7 Aug 2006 10:50:56 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 38643 invoked by uid 500); 7 Aug 2006 10:50:56 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 38632 invoked by uid 99); 7 Aug 2006 10:50:56 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Aug 2006 03:50:56 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Aug 2006 03:50:55 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BD25171429F for ; Mon, 7 Aug 2006 10:48:14 +0000 (GMT) Message-ID: <23233993.1154947694772.JavaMail.jira@brutus> Date: Mon, 7 Aug 2006 03:48:14 -0700 (PDT) From: "Alexey Petrenko (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Commented: (HARMONY-428) [classlib] java.lang.reflect.Proxy.newProxyInstance(ClassLoader,Class[], InvocationHandler) throws unspesified java.lang.ClassFormatError In-Reply-To: <23215917.1146552166321.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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-428?page=comments#action_12426190 ] Alexey Petrenko commented on HARMONY-428: ----------------------------------------- I can not reproduce this bug on classlib+drlvm+Windows. Svetlana, check it please. Probably we should close it as not reproducible. BTW, I've modified a testcase to run it without junit: import java.beans.EventHandler; import java.util.EventObject; import java.util.EventListener; import java.lang.reflect.Proxy; public class Jira428Test { public static void main(String argv[]) { Proxy.newProxyInstance(new Target().getClass().getClassLoader(), new Class[] { FredListener.class }, new EventHandler(new Target(), "meth1", null, null)); } } interface FredListener extends EventListener { public void fireFredEvent(FredEvent event); } class Target { public void meth1() {} public void meth2(int i) {} } class FredEvent extends EventObject { static int i = 0; public FredEvent(Object arg) { super(arg); } public static int getI() { return i; } public static void setI(int j) { i = j; } } > [classlib] java.lang.reflect.Proxy.newProxyInstance(ClassLoader,Class[], InvocationHandler) throws unspesified java.lang.ClassFormatError > ----------------------------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-428 > URL: http://issues.apache.org/jira/browse/HARMONY-428 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Svetlana Samoilenko > Priority: Minor > Attachments: ProxyTest.java > > > The test shows that Proxy.newProxyInstance(ClassLoader loader,Class[] interfaces, InvocationHandler h) throws unspesified java.lang.ClassFormatError while on BEA 1.5 it passes. Error is in the native method defineClassImpl. > > Output on BEA 1.5: > . > Time: 0,109 > OK (1 test) > > Output on Harmony: > .E > There was 1 error: > 1) test_newProxyInstance_ClassLoader_Class_InvocationHandler(ProxyTest)java.lang.ClassFormatError: (/$Proxy0) class name is invalid at offset=0 > at java.lang.reflect.Proxy.defineClassImpl(Native Method) > at java.lang.reflect.Proxy.getProxyClass(Proxy.java:112) > at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:150) > at ProxyTest.test_newProxyInstance_ClassLoader_Class_InvocationHandler(ProxyTest.java:9) > at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205) > FAILURES!!! > Tests run: 1, Failures: 0, Errors: 1 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira