incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r707625 - /incubator/sling/trunk/extensions/event/src/main/java/org/apache/sling/event/EventUtil.java
Date Fri, 24 Oct 2008 13:15:41 GMT
Author: cziegeler
Date: Fri Oct 24 06:15:41 2008
New Revision: 707625

URL: http://svn.apache.org/viewvc?rev=707625&view=rev
Log:
Handle invalid class in the same way as class not found.

Modified:
    incubator/sling/trunk/extensions/event/src/main/java/org/apache/sling/event/EventUtil.java

Modified: incubator/sling/trunk/extensions/event/src/main/java/org/apache/sling/event/EventUtil.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/extensions/event/src/main/java/org/apache/sling/event/EventUtil.java?rev=707625&r1=707624&r2=707625&view=diff
==============================================================================
--- incubator/sling/trunk/extensions/event/src/main/java/org/apache/sling/event/EventUtil.java
(original)
+++ incubator/sling/trunk/extensions/event/src/main/java/org/apache/sling/event/EventUtil.java
Fri Oct 24 06:15:41 2008
@@ -386,6 +386,8 @@
                     final Object value = ois.readObject();
                     properties.put(key, value);
                 }
+            } catch (java.io.InvalidClassException ice) {
+                throw new ClassNotFoundException("Found invalid class.", ice);
             } catch (IOException ioe) {
                 throw new RepositoryException("Unable to deserialize event properties.",
ioe);
             }



Mime
View raw message