felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject svn commit: r728289 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/URLHandlers.java
Date Sat, 20 Dec 2008 15:40:07 GMT
Author: pauls
Date: Sat Dec 20 07:40:07 2008
New Revision: 728289

URL: http://svn.apache.org/viewvc?rev=728289&view=rev
Log:
Forgot an instanceof check in the URLHandlers

Modified:
    felix/trunk/framework/src/main/java/org/apache/felix/framework/URLHandlers.java

Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/URLHandlers.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/URLHandlers.java?rev=728289&r1=728288&r2=728289&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/URLHandlers.java (original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/URLHandlers.java Sat Dec
20 07:40:07 2008
@@ -478,14 +478,22 @@
         {
             for (Iterator iter = m_streamHandlerCache.values().iterator();iter.hasNext();)
             {
-                ((URLHandlersStreamHandlerProxy) iter.next()).flush();
+                Object proxy = iter.next();
+                if (proxy instanceof URLHandlersStreamHandlerProxy)
+                {
+                    ((URLHandlersStreamHandlerProxy) proxy).flush();
+                }
             }
         }
         if (m_contentHandlerCache != null)
         {
             for (Iterator iter = m_contentHandlerCache.values().iterator();iter.hasNext();)
             {
-                ((URLHandlersContentHandlerProxy) iter.next()).flush();
+                Object proxy = iter.next();
+                if (proxy instanceof URLHandlersContentHandlerProxy)
+                {
+                    ((URLHandlersContentHandlerProxy) proxy).flush();
+                }
             }
         }
     }



Mime
View raw message