[
https://issues.apache.org/jira/browse/JENA-1157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15196460#comment-15196460
]
ASF subversion and git services commented on JENA-1157:
-------------------------------------------------------
Commit 04b9fffcffda09c00a327dd86e63593a9ad5ed38 in jena's branch
refs/heads/master from [~andy.seaborne]
[ https://git-wip-us.apache.org/repos/asf?p=jena.git;h=04b9fff ]
JENA-1157: Check expression variables as they are carried forward.
> SELECT ( (?x+1) AS ?x ) {} should be a parse error.
> ---------------------------------------------------
>
> Key: JENA-1157
> URL: https://issues.apache.org/jira/browse/JENA-1157
> Project: Apache Jena
> Issue Type: Bug
> Components: ARQ
> Affects Versions: Jena 3.0.1
> Reporter: Andy Seaborne
> Priority: Minor
>
> If ?x is used in the body, it does correctly
> {noformat}
> SELECT (?x+1 AS ?x) { BIND(1 AS ?x) }
> {noformat}
> so this
> {noformat}SELECT ( (?x+1) AS ?x ) {}{noformat}
> should ideally be a parse error.
> At the moment (3.0.1) it does not and ?x is not set so it's an eval failure
> with x still not set.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)