AnnotationMemberType.Text mistakes minLength
---------------------------------------------
Key: BEEHIVE-687
URL: http://issues.apache.org/jira/browse/BEEHIVE-687
Project: Beehive
Type: Bug
Components: Controls
Versions: V1
Reporter: James Song
Assigned to: Hoi Lam
Fix For: V1
Error message:
[apt]
D:\beehive\controls\test\build\webapps\controlsWeb\WEB-INF\.tmpbeansrc\property\membersh
ip\Controller.java:47: A value assigned to a control property does not satisfy
its constraints. Caus
e: The value, coverlanguage, assigned to a text property exceeds the maximum
length allowed: 0
[apt] public BookControlBean myBook2;
[apt]
D:\beehive\controls\test\build\webapps\controlsWeb\WEB-INF\.tmpbeansrc\property\membersh
ip\Controller.java:43: A value assigned to a control property does not satisfy
its constraints. Caus
e: The value, atitleofthebook, assigned to a text property exceeds the maximum
length allowed: 0
[apt] public BookControlBean myBook;
Repro:
1. change
trunk\controls\test\src\controls\org\apache\beehive\controls\test\controls\property\constraint\BookControl.java
change line 50,52,54,69,71,73 to the following:
@AnnotationMemberTypes.Text(minLength=8)
2. change
trunk\controls\test\webapps\controlsWeb\property\membership\Controller.jpf,
change line 42
to:@BookControl.Intro(title="atitleofthebook",content="",subject="")
line 46
to:@BookControl.Language(coverlanguage="coverlanguage",contentlanguage="",authorlanguage="")
3 run ant detailed.tests from trunk\controls\test
--
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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira