Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 48201 invoked from network); 11 Jan 2007 22:02:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jan 2007 22:02:14 -0000 Received: (qmail 38715 invoked by uid 500); 11 Jan 2007 22:02:21 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 38685 invoked by uid 500); 11 Jan 2007 22:02:21 -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 38676 invoked by uid 99); 11 Jan 2007 22:02:20 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jan 2007 14:02:20 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jan 2007 14:02:13 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id 06CB71A981A; Thu, 11 Jan 2007 14:01:13 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r495398 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/ContentHandler.java Date: Thu, 11 Jan 2007 22:01:12 -0000 To: commits@harmony.apache.org From: tellison@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070111220113.06CB71A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tellison Date: Thu Jan 11 14:01:12 2007 New Revision: 495398 URL: http://svn.apache.org/viewvc?view=rev&rev=495398 Log: Apply patch HARMONY-2478 ([classlib][net]ContentHandler.getContent(Class[]) determines returned object incorrectly) Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/ContentHandler.java Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/ContentHandler.java URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/ContentHandler.java?view=diff&rev=495398&r1=495397&r2=495398 ============================================================================== --- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/ContentHandler.java (original) +++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/ContentHandler.java Thu Jan 11 14:01:12 2007 @@ -65,7 +65,7 @@ Object content = getContent(uConn); Class cl = content.getClass(); for (int i = 0; i < types.length; i++) { - if (cl.isInstance(types[i])) { + if (types[i].isInstance(cl)) { return content; } }