Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 98169 invoked from network); 6 Dec 2006 16:09:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Dec 2006 16:09:43 -0000 Received: (qmail 58099 invoked by uid 500); 6 Dec 2006 16:09:51 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 58070 invoked by uid 500); 6 Dec 2006 16:09:51 -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 58061 invoked by uid 99); 6 Dec 2006 16:09:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Dec 2006 08:09:51 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Dec 2006 08:09:42 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 464F47142EC for ; Wed, 6 Dec 2006 08:09:22 -0800 (PST) Message-ID: <29670337.1165421362285.JavaMail.jira@brutus> Date: Wed, 6 Dec 2006 08:09:22 -0800 (PST) From: "Mikhail Markov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-1970) [classlib][rmi] Could not get proxy ActivationSystem via ActivationGroup.getSystem() method MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/HARMONY-1970?page=all ] Mikhail Markov updated HARMONY-1970: ------------------------------------ Patch Info: [Patch Available] > [classlib][rmi] Could not get proxy ActivationSystem via ActivationGroup.getSystem() method > ------------------------------------------------------------------------------------------- > > Key: HARMONY-1970 > URL: http://issues.apache.org/jira/browse/HARMONY-1970 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: IA32, WinXP > Reporter: Mikhail Markov > Attachments: ActivationGroup.patch, ActivationGroupTest.patch > > > The following test emulates the situation when the ActivationSystem is a proxy class (which is possible when dynamic remote stub is created for it). It passes silently on RI but fails on Harmny. > Output on Harmony: > java.lang.ClassCastException > at java.rmi.activation.ActivationGroup.getSystem(ActivationGroup.java:218) > at Test.main(Test.java:11) > -------------Test.java---------------- > import java.lang.reflect.InvocationHandler; > import java.lang.reflect.Method; > import java.lang.reflect.Proxy; > import java.rmi.activation.ActivationGroup; > import java.rmi.activation.ActivationSystem; > public class Test { > public static void main(String[] args) throws Exception { > ActivationSystem system = (ActivationSystem) Proxy.newProxyInstance(null, > new Class[] { ActivationSystem.class }, new TestInvocationHandler()); > ActivationGroup.setSystem(system); > ActivationGroup.getSystem(); > } > static class TestInvocationHandler implements InvocationHandler { > public Object invoke(Object proxy, Method method, Object[] args) { > return null; > } > } > } -- 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