[jboss-jira] [JBoss JIRA] (DROOLS-3734) Executable model: Imports not evaluated correctly for fact declarations
Olli Johnson (Jira)
issues at jboss.org
Wed Mar 6 06:50:00 EST 2019
Olli Johnson created DROOLS-3734:
------------------------------------
Summary: Executable model: Imports not evaluated correctly for fact declarations
Key: DROOLS-3734
URL: https://issues.jboss.org/browse/DROOLS-3734
Project: Drools
Issue Type: Bug
Affects Versions: 7.17.0.Final, 7.12.0.Final
Reporter: Olli Johnson
Assignee: Mario Fusco
If using the executable model (building with -DgenerateModel=YES) compilation errors occur for types defined in Java being used in DRL of the same maven model.
When attempting to import a Java class defined under the same pom.xml module as the current rules file 'CompilationProblemErrorResult: cannot find symbol' errors are observed. Even when the import is not needed (Java type defined in same package as DRL rules), if the type is used in a type declaration the 'cannot find symbol' error is still observed.
Errors are of the form:
{code}
[ERROR] Unable to build KieBaseModel:all
CompilationProblemErrorResult: cannot find symbol
symbol: class MyFact
location: package olijohns
CompilationProblemErrorResult: cannot find symbol
symbol: class MyFact
{code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list