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