control property constraint .MembershipRule.ALL_IF_ANY
------------------------------------------------------

         Key: BEEHIVE-210
         URL: http://issues.apache.org/jira/browse/BEEHIVE-210
     Project: Beehive
        Type: Bug
  Components: Controls  
    Versions: V1Beta    
    Reporter: James Song
 Assigned to: Hoi Lam 
     Fix For: V1Beta


AnnotationConstraints.MembershipRule(AnnotationConstraints.MembershipRuleValues.ALL_IF_ANY)
 does not work.

Test 
control:org.apache.beehive.controls.test.controls.property.constraint.PersonControl;

For code:

    
@AnnotationConstraints.MembershipRule(AnnotationConstraints.MembershipRuleValues.ALL_IF_ANY)
public @interface Address
{
        @AnnotationMemberTypes.Text(maxLength=8)
        public String street() default "";
        @AnnotationMemberTypes.Text(maxLength=8)
        public String city() default "";
        @AnnotationMemberTypes.Text(maxLength=8)
        public String province();
        //public String province() default "";
        //Test ALL_IF_ANY
        @AnnotationMemberTypes.Int(minValue=0, maxValue=100000)
        public int zipcode() default 0;
}

province has no default value.

There is no compile/build error.

Runtime value for province is null.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira

Reply via email to