commit | ed6ae8140f51f12f41946d09b561cac973e1260d | [log] [tgz] |
---|---|---|
author | niclas <niclas@hedhman.org> | Fri Jun 30 16:03:23 2017 +0800 |
committer | niclas <niclas@hedhman.org> | Fri Jun 30 16:03:23 2017 +0800 |
tree | f0cb89aa99acd81b6988148d0f1c04a96a41b81b | |
parent | d22dc29edd7b66fec9c9eff5628061e6b52b0d95 [diff] |
Constraint check is incorrect. Was introduced when better reporting was attempted.
diff --git a/core/runtime/src/main/java/org/apache/polygene/runtime/bootstrap/CompositeAssemblyImpl.java b/core/runtime/src/main/java/org/apache/polygene/runtime/bootstrap/CompositeAssemblyImpl.java index cb1c751..7f69916 100644 --- a/core/runtime/src/main/java/org/apache/polygene/runtime/bootstrap/CompositeAssemblyImpl.java +++ b/core/runtime/src/main/java/org/apache/polygene/runtime/bootstrap/CompositeAssemblyImpl.java
@@ -596,8 +596,7 @@ // No implementation found! // Check if if it's a composite constraints - if( Arrays.stream( annotationType.getAnnotations() ) - .anyMatch( typeHasAnnotation( ConstraintDeclaration.class ) ) ) + if( typeHasAnnotation( ConstraintDeclaration.class ).test( constraintAnnotation ) ) { ValueConstraintsModel valueConstraintsModel = constraintsFor( Arrays.stream( annotationType.getAnnotations() ),