AlbumenJ commented on code in PR #13923: URL: https://github.com/apache/dubbo/pull/13923#discussion_r1527698992
########## dubbo-filter/dubbo-filter-validation/src/main/java/org/apache/dubbo/validation/support/jvalidation/JValidation.java: ########## @@ -28,12 +31,24 @@ public class JValidation extends AbstractValidation { /** - * Return new instance of {@link JValidator} + * Return new instance of {@link Validator} * @param url Valid URL instance - * @return Instance of JValidator + * @return Instance of Validator */ @Override protected Validator createValidator(URL url) { - return new JValidator(url); + List<Class<? extends Validator>> validatorList = Arrays.asList(JValidator.class, JValidatorNew.class); Review Comment: Yes. A more conscise way is to use `org.apache.dubbo.common.extension.Activate#onClass` and create two filter for `javax` and `jakarta` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For additional commands, e-mail: notifications-h...@dubbo.apache.org