You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@turbine.apache.org by gk...@apache.org on 2026/04/17 09:50:55 UTC

(turbine-fulcrum-parser) 02/02: Allow descendants of DefaultParameterParser or DefaultCookieParser

This is an automated email from the ASF dual-hosted git repository.

gk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/turbine-fulcrum-parser.git

commit 866068d401d0d591ae00a67caeb7920e27e06ce0
Author: gk <gk...@apache.org>
AuthorDate: Fri Apr 17 11:50:25 2026 +0200

    Allow descendants of DefaultParameterParser or DefaultCookieParser
---
 src/java/org/apache/fulcrum/parser/DefaultParserService.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/java/org/apache/fulcrum/parser/DefaultParserService.java b/src/java/org/apache/fulcrum/parser/DefaultParserService.java
index 0bcdfa9..b484c78 100644
--- a/src/java/org/apache/fulcrum/parser/DefaultParserService.java
+++ b/src/java/org/apache/fulcrum/parser/DefaultParserService.java
@@ -293,7 +293,7 @@ public class DefaultParserService
                         throw new InstantiationException("Could not invalidate object " + e1.getMessage() + " after exception: " + e.getMessage());
                     }
 				}
-            } else if ( ppClass.equals(DefaultParameterParser.class) )
+            } else if ( ppClass.equals(DefaultParameterParser.class) || DefaultParameterParser.class.isAssignableFrom(ppClass) ) 
             {
                 DefaultParameterParser parserInstance = null;
                 try {
@@ -310,7 +310,7 @@ public class DefaultParserService
                         throw new InstantiationException("Could not invalidate object " + e1.getMessage() + " after exception: " + e.getMessage());
                     }
                 }
-            } else if ( ppClass.equals(DefaultCookieParser.class) )
+            } else if ( ppClass.equals(DefaultCookieParser.class) || DefaultCookieParser.class.isAssignableFrom(ppClass) )
             {
                 DefaultCookieParser parserInstance = null;
                 try {