]
Tibor Zimányi updated DROOLS-2280:
----------------------------------
Labels: ruleunits (was: )
Resolving rule unit classnames depends on File.separator character
------------------------------------------------------------------
Key: DROOLS-2280
URL:
https://issues.jboss.org/browse/DROOLS-2280
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 7.5.0.Final
Reporter: Tibor Zimányi
Assignee: Tibor Zimányi
Priority: Minor
Labels: ruleunits
When running testNamingConventionOnDrlFile test on Windows, it fails on NPE, because the
engine cannot find the rule unit "org/kie/test/MyRuleUnit" defined in the test,
because it contains "/" separator character. The method that resolves the
classname searches for File.separator character in the mentioned string, which is
"\" on Windows [1].
This is a bug, because e.g. MemoryFileSystem uses "/" also when running on
Windows. The classname resolution should be OS independent.
[1]
https://github.com/kiegroup/drools/blob/5fad04919f255933bdd34afdb8da10b94...