After upgrading to 6.2, compilation fails if '・' (Middle Dot) is included in a rule name of DRL
Issue
After upgrading to 6.2.0, if '・'(U+30FB) is included in a rule name of DRL like the following,
rule "テスト・ルール"
when
then
System.out.println("test");
end
compilation fails with ERROR like the following.
18:28:24,083 ERROR [org.drools.compiler.kie.builder.impl.AbstractKieModule] (http-/127.0.0.1:8080-2) Unable to build KieBaseModel:defaultKieBase
Rule Compilation error : [Rule name='テスト・ルール']
com/example/testproj/Rule_テスト・ルール1985339762.java (3:104) : Syntax error on tokens, delete these tokens
com/example/testproj/Rule_テスト・ルール1985339762.java (3:117) : The public type Rule_テスト must be defined in its own file
com/example/testproj/Rule_テスト・ルール1985339762.java (3:140) : Syntax error, insert "}" to complete Block
com/example/testproj/Rule_テスト・ルール1985339762.java (4:146) : Syntax error on tokens, delete these tokens
com/example/testproj/Rule_テスト・ルール1985339762.java (6:212) : Syntax error on token "void", @ expected
com/example/testproj/Rule_テスト・ルール1985339762.java (6:236) : Syntax error on token(s), misplaced construct(s)
com/example/testproj/Rule_テスト・ルール1985339762.java (6:263) : Syntax error on token "throws", @ expected
com/example/testproj/Rule_テスト・ルール1985339762.java (6:280) : Syntax error, insert "enum Identifier" to complete EnumHeader
com/example/testproj/Rule_テスト・ルール1985339762.java (10:383) : Syntax error on token "}", delete this token
Exactly same DRL can be compiled with 6.1.x without any error.
Environment
- Red Hat JBoss BPM Suite(BPMS)
- 6.2.x
- Red Hat JBoss BRMS(BRMS)
- 6.2.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
