Community
Participate
Working Groups
Currently if you specify more than one "type" in the JavaTypeConstraint annotation then the value must implement/extends "all" the specified type. Perhaps an option to specify that the value must implements/extends "one" of the specified type.
Enhancement implemented. Added a section to the 0.3 release what's new document. Unit test coverage in TestJava0004.testRequiredClass6() and TestJavaJdt0004.testRequiredClass6(). The syntax is as follows: @JavaTypeConstraint( kind = JavaTypeKind.CLASS, type = { "java.util.List", "java.util.Map" }, behavior = JavaTypeConstraintBehavior.AT_LEAST_ONE ) The default behavior is JavaTypeConstraintBehavior.ALL, which matches old behavior for this constraint. There is no migration impact. Please verify.
Verified with Coherence test case.