No check() phase during the Controller annotation processing for an external
form bean class and ValidatableProperty
--------------------------------------------------------------------------------------------------------------------
Key: BEEHIVE-1127
URL: http://issues.apache.org/jira/browse/BEEHIVE-1127
Project: Beehive
Type: Bug
Components: NetUI
Versions: 1.0.1
Reporter: Carlin Rogers
The processing of ValidatableProperty annotations in an external form bean does
not go through the typical check() phase of the
TwoPhaseCoreAnnotationProcessor. During the Controller annotation processing
during the check() we run through the FormBeanChecker and specifically the
ValidateTypeGrammar.onCheck(), for an inner form bean. However, if we have an
external form bean class, the Controller annotation processing only looks at
the external form bean during the generate() phase. Any errors in the
ValidatableProperty annotations of the external form bean will cause processing
problems without providing the kind user messages during the check() phase.
For example, if you have a ValidateType(type=String.class) you should see a
message about using a primitive Class, e.g. int.class. However, you will get
either an AssertionError or without asserts a ClassCastException in
org.apache.beehive.netui.compiler.genmodel.DefaultValidatorRuleFactory.getFieldRule().
I will attach a repro case.
--
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