bval-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francesco Chicchiriccò (JIRA) <>
Subject [jira] [Commented] (BVAL-167) ConstraintDeclarationException: Illegal strengthening: overridden [constraints] in inheritance hierarchy
Date Mon, 05 Nov 2018 06:38:00 GMT


Francesco Chicchiriccò commented on BVAL-167:

Thanks for investigating this issue [~romain.manni-bucau], and sorry for linking the wrong
methods in the description: I see anyway that you found the one mentioned in the stacktrace.

Could you please explain what do you mean by
{quote}fix it applying the same constraint on the whole hierarchy or doing a real implementation

The method is declared in the [interface|]
    AttrTO read(
            @NotNull @PathParam("key") String key,
            @NotNull @PathParam("schemaType") SchemaType schemaType,
            @NotNull @PathParam("schema") String schema);
and implemented by an [abstract class|]
    public AttrTO read(final String key, final SchemaType schemaType, final String schema)
      // ...

What is exactly "to fix" here?

> ConstraintDeclarationException: Illegal strengthening: overridden [constraints] in inheritance
> --------------------------------------------------------------------------------------------------------
>                 Key: BVAL-167
>                 URL:
>             Project: BVal
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Francesco Chicchiriccò
>            Priority: Major
>             Fix For: 2.0.1
> I am trying to upgrade BVal to 2.0.0 in Syncope.
> I have changed my POMs as follows:
> * javax.validation:validation-api from 1.1.0.Final to 2.0.1.Final
> * org.apache.bval:bval-jsr from 1.1.2 to 2.0.0
> When I try to reach up some of the REST services (based on CXF 3.2), an [exception|]
is thrown; I have read about such exception, but it seems to me that the mentioned methods
in [interface|]
and [implementation|]
should comply with hierarchy rules.
> Nevertheless, if I swap
> org.apache.bval:bval-jsr:2.0.0
> with
> org.hibernate.validator:hibernate-validator:6.0.13.Final
> all is working fine.

This message was sent by Atlassian JIRA

View raw message