You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Adrian Crum (JIRA)" <ji...@apache.org> on 2012/07/08 11:59:33 UTC
[jira] [Closed] (OFBIZ-4543) minilanguage does not remeber a
variable type but uses the default string type
[ https://issues.apache.org/jira/browse/OFBIZ-4543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adrian Crum closed OFBIZ-4543.
------------------------------
Resolution: Won't Fix
That is the intended behavior. The type attribute declares the Java class that the method signature is expecting, and that declaration is explicit. You cannot assume a variable's type will match the method parameter type.
> minilanguage does not remeber a variable type but uses the default string type
> ------------------------------------------------------------------------------
>
> Key: OFBIZ-4543
> URL: https://issues.apache.org/jira/browse/OFBIZ-4543
> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Affects Versions: SVN trunk
> Reporter: Hans Bakker
> Assignee: Adrian Crum
> Priority: Minor
>
> the following example code:
> {code}
> <set field="actual" value="true" type="Boolean"/>
> <call-class-method method-name="getPaymentNotApplied" classname="org.ofbiz.accounting.payment.PaymentWorker" ret-field="notAppliedPayment">
> <field field="payment" type="GenericValue"/>
> - <field field="actual"/>
> + <field field="actual" type="Boolean"/>
> </call-class-method>
> {code}
> if this diff file is not applied the java class getPaymentNotApplied will not be found because the minilanguage will use the 'string' type for the actual variable.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira