From dev-return-38078-apmail-harmony-dev-archive=harmony.apache.org@harmony.apache.org Fri Sep 04 07:26:38 2009 Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 13540 invoked from network); 4 Sep 2009 07:26:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Sep 2009 07:26:38 -0000 Received: (qmail 79529 invoked by uid 500); 4 Sep 2009 07:26:37 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 79446 invoked by uid 500); 4 Sep 2009 07:26:37 -0000 Mailing-List: contact dev-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 dev@harmony.apache.org Received: (qmail 79435 invoked by uid 99); 4 Sep 2009 07:26:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Sep 2009 07:26:37 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of littlee1032@gmail.com designates 209.85.222.186 as permitted sender) Received: from [209.85.222.186] (HELO mail-pz0-f186.google.com) (209.85.222.186) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Sep 2009 07:26:29 +0000 Received: by pzk16 with SMTP id 16so557026pzk.18 for ; Fri, 04 Sep 2009 00:26:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=OGaYBF/vrPoatBCXFSmijCsO3ygjOmOqLYorY8IcNpE=; b=cRiWnoTEmgoya/4sI26YO0c7exyrcpR6jAntCRo4Fz7lHIsQcbYNB2/VjHTYZMwtIJ Qs34sppKW+DdodlSuEuAF3lQI9tEYrELafDeed3123qOUFRMror+IRpU3b0P8d7B/1QI NxUdHxKQ1ly3NhFM7BKlku6WA4xYDF+UHVf80= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=b9dbLrBOWdCnANAerRHDxE5u4jjWK6994pkeUsiUQghYAj2I+y9o+Q6F4w9JBNTM1t DBPMsSMTf+BSyn00DyNbVVeWsPnrCJX9pIk/RvA+widmp+8ij2LJWJegO0pca64LGh6N 3Ch7yTY7C3pfILuhFa80xGbh3bGYhKvDwwD0g= MIME-Version: 1.0 Received: by 10.143.137.7 with SMTP id p7mr288025wfn.335.1252049169207; Fri, 04 Sep 2009 00:26:09 -0700 (PDT) In-Reply-To: <1013827094.1251972935467.JavaMail.jira@brutus> References: <1121321485.1251961652868.JavaMail.jira@brutus> <1013827094.1251972935467.JavaMail.jira@brutus> Date: Fri, 4 Sep 2009 15:26:09 +0800 Message-ID: <5948b71e0909040026g6454c10csc2cf9515a0ad854f@mail.gmail.com> Subject: Re: [jira] Commented: (HARMONY-6331) [classlib][beans] remove XMLDecoderTest from the exclude list From: Charles Lee To: dev@harmony.apache.org Content-Type: multipart/alternative; boundary=000e0cd72d0ef8d27d0472bb69d2 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd72d0ef8d27d0472bb69d2 Content-Type: text/plain; charset=ISO-8859-1 Thanks Regis. The testcase will *pass* on ri and harmony+vme. But failed on harmony+drlvm. The reason cause this difference is due to differenct order returned by the Class.getMethods. It seems findMethod in XMLDecoder shoud fix this problem, because it should be order free. Also I use "*" around the word "pass" when I mentioned result using harmony + vme. It is a fake pass. The exception it throw is "Cannot decide which method to call to match get" due to the specific method order it get. The senario as follows: Class A has four method: 1. test(int, String) 2. test(Integer, Object) 3. test(Object, String) 4. test(String, Object) I want to invoke the test with arg null and "aaa", that is method.invoke(null, "aaa"). Which method should be invoked? RI: NoSuchMethodException vme: (mothed order is 4, 1, 2, 3), "Cannot decide which method to call to match get", because method 4 and method 2 has the same distance. drlvm: (mothd order is 1, 2, 3, 4), method 3 is invoked because it has the smallest distance. My question is: which method should be invoked? On Thu, Sep 3, 2009 at 6:15 PM, Regis Xu (JIRA) wrote: > > [ > https://issues.apache.org/jira/browse/HARMONY-6331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750953#action_12750953] > > Regis Xu commented on HARMONY-6331: > ----------------------------------- > > After applying second patch, testReadObject_Owner_Specific is faild, but > it's much better than before! > > junit.framework.AssertionFailedError: null > at junit.framework.Assert.fail(Assert.java:47) > at junit.framework.Assert.assertTrue(Assert.java:20) > at junit.framework.Assert.assertNull(Assert.java:227) > at junit.framework.Assert.assertNull(Assert.java:220) > at > org.apache.harmony.beans.tests.java.beans.XMLDecoderTest.testReadObject_Owner_Specific(XMLDecoderTest.java:457) > at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java) > > looking forward your new patch :) > > > [classlib][beans] remove XMLDecoderTest from the exclude list > > ------------------------------------------------------------- > > > > Key: HARMONY-6331 > > URL: https://issues.apache.org/jira/browse/HARMONY-6331 > > Project: Harmony > > Issue Type: Bug > > Reporter: Li Jing Qin > > Attachments: HARMONY-6331.diff, HARMONY-6331.diff.v2 > > > > > > Remove the XMLDecoderTest form the exclude list. > > -- > This message is automatically generated by JIRA. > - > You can reply to this email to add a comment to the issue online. > > -- Yours sincerely, Charles Lee --000e0cd72d0ef8d27d0472bb69d2--