harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
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 GMT
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;
             }
         }



Mime
View raw message