Translated message

A translation of this page exists in English.

6.2 にアップグレードした後、DRL のルール名に '・' (中黒) が含まれているとコンパイルに失敗する

Solution In Progress - Updated -

Issue

6.2.0 にアップグレードした後、以下のようにDRL のルール名に '・'(U+30FB) が含まれている場合は、

rule "テスト・ルール"
    when
    then
        System.out.println("test");
end

以下のようなエラーが発生しコンパイルに失敗します。

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

同じ DRL を 6.1.x でコンパイルしてもエラーは発生しません。

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content