Default group sequence does not honour group hierarchy

Description

Assuming the following

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 public interface Min {} public interface Max extends Min {} @GroupSequence({Max.class, A.class}) public class A { @NotNull(groups=Max.class) public String foo; @NotNull(groups=Min.class) public String bar; } public class B { @NotNull(groups=Max.class) public String foo; @NotNull(groups=Min.class) public String bar; }

The following code returns as expected

1 assert validator.validate(new B(), Max.class, B.class).size() == 2

But the following fails

1 2 3 // bar is ignored as Min is not considered when Max is evaluated for default sequence // so size == 1 assert validator.validate(new A(), Max.class, A.class).size() == 2

Note that the actual test used group sequence provider but that's not relevant I think.

Environment

None

Status

Assignee

Gunnar Morling

Reporter

Emmanuel Bernard

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Priority

Blocker