[jboss-jira] [JBoss JIRA] (DROOLS-2988) Question Mark should always be leading in qualified names
Edoardo Vacchi (JIRA)
issues at jboss.org
Wed Sep 12 07:46:00 EDT 2018
Edoardo Vacchi created DROOLS-2988:
--------------------------------------
Summary: Question Mark should always be leading in qualified names
Key: DROOLS-2988
URL: https://issues.jboss.org/browse/DROOLS-2988
Project: Drools
Issue Type: Enhancement
Reporter: Edoardo Vacchi
Assignee: Matteo Mortari
The QuestionMark identifier is recognized as part of a qualified name, but it should only be admitted as the first fragment. Currently we are not accounting for edge cases such as `foo.?.bar`. This should be probably reported as a syntax error, as it does not make any sense, but we can ignore it for now.
Relevant lines:
https://github.com/kiegroup/drools/blob/c82693e41ce4713ca466fb6947e4a046e697979f/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/DirectCompilerVisitor.java#L1366-L1376
Memo: Recognition of `? ` is done via a global variable. We should rather refactor this as to carry the information correctly in a DirectCompilerResult. This was deemed a bit complicated because of the level of nesting of tree nodes. We can do this when/if we refactor the compiler to use a proper AST
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list