[jboss-jira] [JBoss JIRA] (DROOLS-83) Cannot use imported classes in declared types fields initialization

Mario Fusco (JIRA) jira-events at lists.jboss.org
Tue Mar 19 06:26:42 EDT 2013


     [ https://issues.jboss.org/browse/DROOLS-83?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mario Fusco resolved DROOLS-83.
-------------------------------

    Fix Version/s: 5.6
                   6.0.0.Alpha1
       Resolution: Done

    
> Cannot use imported classes in declared types fields initialization
> -------------------------------------------------------------------
>
>                 Key: DROOLS-83
>                 URL: https://issues.jboss.org/browse/DROOLS-83
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>            Reporter: Mario Fusco
>            Assignee: Mario Fusco
>             Fix For: 5.6, 6.0.0.Alpha1
>
>
> Having added the following import statements in the drl:
> import org.drools.compiler.test.Person
> import org.drools.compiler.test.Man
> this field initialization in a declared type in the same drl doesn't compile:
> persons: Person[] = new Person[] { new Man() }
> As a workaround, note that adding the full class names fixes the problem:
> persons: Person[] = new org.drools.compiler.test.Person[] { new org.drools.compiler.test.Man() }

--
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