[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 05:18:42 EDT 2013
Mario Fusco created DROOLS-83:
---------------------------------
Summary: 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
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