[jboss-jira] [JBoss JIRA] (JBRULES-3253) A Declared bean's field's initialization expression is ignored if the type is primitive

RH Bugzilla Integration (JIRA) jira-events at lists.jboss.org
Mon Sep 17 06:38:35 EDT 2012


    [ https://issues.jboss.org/browse/JBRULES-3253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12719024#comment-12719024 ] 

RH Bugzilla Integration commented on JBRULES-3253:
--------------------------------------------------

Iva Zakova <izakova at redhat.com> made a comment on [bug 851300|https://bugzilla.redhat.com/show_bug.cgi?id=851300]

Verified in 5.3.1.ER1.
                
> A Declared bean's field's initialization expression is ignored if the type is primitive
> ---------------------------------------------------------------------------------------
>
>                 Key: JBRULES-3253
>                 URL: https://issues.jboss.org/browse/JBRULES-3253
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-compiler
>    Affects Versions: 5.3.0.CR1
>            Reporter: Davide Sottara
>            Assignee: Davide Sottara
>             Fix For: 5.4.1.Final, 5.5.0.Beta1
>
>
> It should be possible to use valid MVEL expressions to initialize the fields of declared beans (using the default constructor).
> declare Bean
>   field  : int = 3*4
> end
> If the field type is primitive (int, double, ...) or boxed (Integer, Boolean, Float, ...), the expression is ignored

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list