bval-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Benson (JIRA)" <>
Subject [jira] [Commented] (BVAL-167) ConstraintDeclarationException: Illegal strengthening: overridden [constraints] in inheritance hierarchy
Date Wed, 07 Nov 2018 15:42:00 GMT


Matt Benson commented on BVAL-167:

We may be stricter than the RI, but I have still not seen how our implementation's behavior
can be considered stricter than the specification requires. Specifically the spec says:


If a sub type overrides/implements a method originally defined in several parallel types o
the hierarchy (e.g. two interfaces not extending each other, or a class and an interface not
implemented by said class), no parameter constraints may be declared for that method at all
nor parameters be marked for cascaded validation. This again is to avoid an unexpected strengthening
of preconditions to be fullfilled by the caller.



Based on this, I would say the RI deserves a bug report, not us.

> 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