[
https://issues.apache.org/jira/browse/JENA-1484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16359613#comment-16359613
]
A. Soroka commented on JENA-1484:
---------------------------------
Thanks, [~Aklakan]. I'm going to wait for [~andy.seaborne] to confirm that this
is the right fix, because I am not versed enough in this part of the code to be
confident merging on my own.
> ElementData transformation fails due to bug in ApplyElementTransformVisitor
> ---------------------------------------------------------------------------
>
> Key: JENA-1484
> URL: https://issues.apache.org/jira/browse/JENA-1484
> Project: Apache Jena
> Issue Type: Bug
> Components: ARQ
> Affects Versions: Jena 3.6.0
> Reporter: Claus Stadler
> Priority: Major
>
> Applying a NodeTransform to an ElementData has no effect due to a mistake in
> org.apache.jena.sparql.syntax.syntaxtransform.ApplyElementTransformVisitor
> {code:java}
> // BUGGED implementation as of Jena 3.6.0:
> @Override
> public void visit(ElementData el) {
> transform.transform(el) ;
> push(el) ;
> }
> // should be:
> @Override
> public void visit(ElementData el) {
> Element el2 = transform.transform(el) ;
> push(el2) ;
> }
> // analogous to:
> @Override
> public void visit(ElementOptional el) {
> Element elSub = pop() ;
> Element el2 = transform.transform(el, elSub) ;
> push(el2) ;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)