[jboss-jira] [JBoss JIRA] (WFLY-13612) Bean Validation Problem In EJB inheritance

huaxu wu (Jira) issues at jboss.org
Mon Jun 22 23:41:24 EDT 2020


     [ https://issues.redhat.com/browse/WFLY-13612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

huaxu wu updated WFLY-13612:
----------------------------
    Summary: Bean Validation Problem In EJB inheritance  (was: Bean Validation In inheritance)


> Bean Validation Problem In EJB inheritance
> ------------------------------------------
>
>                 Key: WFLY-13612
>                 URL: https://issues.redhat.com/browse/WFLY-13612
>             Project: WildFly
>          Issue Type: Bug
>          Components: Bean Validation
>    Affects Versions: 20.0.0.Final
>            Reporter: huaxu wu
>            Assignee: Brian Stansberry
>            Priority: Major
>
>  
> {code:java}
> @Path("/test_action")
> public interface TestResource {
>     @Path("test")
>     @POST
>     @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
>     @Produces(MediaType.APPLICATION_JSON)
>     GeneralOperationResult test2(@FormParam("asdf") @NotBlank String asdf);
> }
> {code}
> {code:java}
> @Stateless
> public class TestResourceImpl implements TestResource {
>     @Override
>     public GeneralOperationResult test2(String asdf) {
>         return GeneralOperationResult.createSuccess("test");
>     }
> }
> {code}
> The above code, the @NotBlank annotation works on wildfly19, but not on wildfly20.
> To make it work on wildfly20, I must add @NotBlank annotation to the override method.
> I wonder it's bug or it's your design?
>  



--
This message was sent by Atlassian Jira
(v7.13.8#713008)



More information about the jboss-jira mailing list