You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Zach Smith (JIRA)" <be...@incubator.apache.org> on 2005/08/19 00:19:56 UTC
[jira] Closed: (BEEHIVE-656) incorrect compile error when declaring a control with property constraint
[ http://issues.apache.org/jira/browse/BEEHIVE-656?page=all ]
Zach Smith closed BEEHIVE-656:
------------------------------
1. Setting @BookControl.Price(us_price="10.1") works (so long as you modify the constraint on the Control to specify 'places=1')
2. Setting @BookControl.Price(us_price="10.1",ca_price="",eu_price="") as shown in the bug does not work and fails at compile time with the following error:
[apt] D:\beehive\trunk\controls\test\build\webapps\controlsWeb\WEB-INF\.tmpbeansrc\property\membership\Controller.java:54: A value assigned to a control property does not satisfy its constraints. Cause: empty String
This test appears to be flawed but the expected behavior of AnnotationTypes.Decimal work correctly as far as I can tell. I'll take a look at updating this test.
> incorrect compile error when declaring a control with property constraint
> -------------------------------------------------------------------------
>
> Key: BEEHIVE-656
> URL: http://issues.apache.org/jira/browse/BEEHIVE-656
> Project: Beehive
> Type: Bug
> Components: Controls
> Versions: v1m1
> Reporter: James Song
> Assignee: Hoi Lam
> Fix For: v1m1
>
> Error message:
> [apt] D:\beehive\controls\test\build\webapps\controlsWeb\WEB-INF\.tmpbeansrc\property\membersh
> ip\Controller.java:55: A value assigned to a control property does not satisfy its constraints. Caus
> e: The value, 10.1, assigned to a decimal property exceeds the maximum value allowed: 4.9E-324.
> [apt] public BookControlBean myBook3;
> Property constaint on the control:
> @AnnotationMemberTypes.Decimal(minValue=10)
> public String us_price();
> Control declaration on jpf:
> @Control
> @BookControl.Price(us_price="10.1",ca_price="",eu_price="")
> Repro:
> svn update to r169505;
> 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