[jboss-jira] [JBoss JIRA] (DROOLS-1200) Multibyte bind variable name fails with java dialect

Toshiya Kobayashi (JIRA) issues at jboss.org
Wed Jun 8 05:48:00 EDT 2016


    [ https://issues.jboss.org/browse/DROOLS-1200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13249436#comment-13249436 ] 

Toshiya Kobayashi commented on DROOLS-1200:
-------------------------------------------

Unit test was sent as PR.

With a debugger, I observed that NoViableAltException was thrown in JavaLexer.mTokens() so I guess multibyte chars are not considered in java.g.

> Multibyte bind variable name fails with java dialect
> ----------------------------------------------------
>
>                 Key: DROOLS-1200
>                 URL: https://issues.jboss.org/browse/DROOLS-1200
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine
>    Affects Versions: 6.4.0.Final
>            Reporter: Toshiya Kobayashi
>            Assignee: Mario Fusco
>
> If you have a bind variable which name is multibyte (for example, 'D' U+FF24) and use java dialect, DRL build fails with error messages like:
> {noformat}
> line 1:21 no viable alternative at character 'D'
> 18:21:54.036 [main] ERROR o.d.c.k.b.impl.AbstractKieModule.buildKnowledgePackages:249 - Unable to build KieBaseModel:defaultKieBase
> Rule Compilation error : [Rule name='R']
> 	defaultpkg/Rule_R1623499031.java (7:346) : D cannot be resolved
> {noformat}
> Mvel dialect doesn't have this issue.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the jboss-jira mailing list