Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1484

ElementData transformation fails due to bug in ApplyElementTransformVisitor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Jena 3.6.0
    • Jena 3.7.0
    • ARQ
    • None

    Description

      Applying a NodeTransform to an ElementData has no effect due to a mistake in

      org.apache.jena.sparql.syntax.syntaxtransform.ApplyElementTransformVisitor

          // 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) ;
          }
      

      Attachments

        Issue Links

          Activity

            People

              ajs6f Adam Soroka
              Aklakan Claus Stadler
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: