Repository: bval Updated Branches: refs/heads/bv2 47e3820bd -> dfc8c9e32
ensure void and null match Project: http://git-wip-us.apache.org/repos/asf/bval/repo Commit: http://git-wip-us.apache.org/repos/asf/bval/commit/dfc8c9e3 Tree: http://git-wip-us.apache.org/repos/asf/bval/tree/dfc8c9e3 Diff: http://git-wip-us.apache.org/repos/asf/bval/diff/dfc8c9e3 Branch: refs/heads/bv2 Commit: dfc8c9e326fc0e26759d2628cf6f24e84575103c Parents: 47e3820 Author: Romain Manni-Bucau <[email protected]> Authored: Thu Feb 22 18:32:20 2018 +0100 Committer: Romain Manni-Bucau <[email protected]> Committed: Thu Feb 22 18:32:20 2018 +0100 ---------------------------------------------------------------------- .../main/java/org/apache/bval/util/reflection/TypeUtils.java | 2 +- bval-tck11/work-tests-suite.xml | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bval/blob/dfc8c9e3/bval-core/src/main/java/org/apache/bval/util/reflection/TypeUtils.java ---------------------------------------------------------------------- diff --git a/bval-core/src/main/java/org/apache/bval/util/reflection/TypeUtils.java b/bval-core/src/main/java/org/apache/bval/util/reflection/TypeUtils.java index b8b044d..a75e1ad 100644 --- a/bval-core/src/main/java/org/apache/bval/util/reflection/TypeUtils.java +++ b/bval-core/src/main/java/org/apache/bval/util/reflection/TypeUtils.java @@ -975,7 +975,7 @@ public class TypeUtils { return false; } - return value == null ? !(type instanceof Class<?>) || !((Class<?>) type).isPrimitive() + return value == null ? !(type instanceof Class<?>) || type == void.class || !((Class<?>) type).isPrimitive() : isAssignable(value.getClass(), type, null); } http://git-wip-us.apache.org/repos/asf/bval/blob/dfc8c9e3/bval-tck11/work-tests-suite.xml ---------------------------------------------------------------------- diff --git a/bval-tck11/work-tests-suite.xml b/bval-tck11/work-tests-suite.xml index 0157dd8..b064c1c 100644 --- a/bval-tck11/work-tests-suite.xml +++ b/bval-tck11/work-tests-suite.xml @@ -21,10 +21,7 @@ think to add -Dvalidation.provider=org.apache.bval.jsr303.ApacheValidationProvid <suite name="tmp" verbose="1"> <test name="tmp"> <classes> - <class name="org.hibernate.beanvalidation.tck.tests.integration.cdi.executable.types.ExecutableTypesTest"> - <methods> - <include name="testValidationOfConstrainedGetterReturnValueWithExecutableTypeGETTER_METHODS"/> - </methods> + <class name="org.hibernate.beanvalidation.tck.tests.integration.cdi.executable.ExecutableValidationTest"> </class> </classes> </test>
