You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Claus Stadler (JIRA)" <ji...@apache.org> on 2018/02/10 17:37:01 UTC

[jira] [Created] (JENA-1484) ElementData transformation fails due to bug in ApplyElementTransformVisitor

Claus Stadler created JENA-1484:
-----------------------------------

             Summary: 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


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)