cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From un...@apache.org
Subject svn commit: r76252 - cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/source/impl
Date Thu, 18 Nov 2004 17:31:08 GMT
Author: unico
Date: Thu Nov 18 09:31:07 2004
New Revision: 76252

Modified:
   cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/source/impl/SitemapSource.java
Log:
major bugfix: SitemapSourceValidity.isValid(SourceValidity validity) must compare its nested
validity 
with the other ((SitemapSourceValidity) validity).nested_validity, not with the SitemapSourceValidity
itself

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/source/impl/SitemapSource.java
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/source/impl/SitemapSource.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/source/impl/SitemapSource.java
Thu Nov 18 09:31:07 2004
@@ -517,9 +517,12 @@
         }
 
         public int isValid(SourceValidity validity) {
-            return(this.nested_validity != null?
-                   this.nested_validity.isValid(validity):
-                   SourceValidity.INVALID);
+            if (validity instanceof SitemapSourceValidity) {
+                return(this.nested_validity != null?
+                        this.nested_validity.isValid(((SitemapSourceValidity) validity).getNestedValidity()):
+                        SourceValidity.INVALID);
+            }
+            return SourceValidity.INVALID;
         }
 
         public SourceValidity getNestedValidity() {

Mime
View raw message