You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2017/05/09 06:47:04 UTC

[jira] [Updated] (GROOVY-5363) MarkupBuilder and StreamingMarkupBuilder should merge

     [ https://issues.apache.org/jira/browse/GROOVY-5363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul King updated GROOVY-5363:
------------------------------
    Description: 
Currently there is MarkupBuilder and StreamingMarkupBuilder. These should be different implementations of the same interface. The choice of streaming or non-streaming should be a constructor parameter or static virtual constructor parameter, not a difference in (visible) class name.

The design should factor in JDK8's stream capabilities and almost certainly JDK9's module capabilities, i.e., it would belong in a new xml module along with a revamped slurper/parser. It should have a unique package structure

  was:Currently there is MarkupBuilder and StreamingMarkupBuilder. These should be different implementations of the same interface. The choice of streaming or non-streaming should be a constructor parameter or static virtual constructor parameter, not a difference in class name.


> MarkupBuilder and StreamingMarkupBuilder should merge
> -----------------------------------------------------
>
>                 Key: GROOVY-5363
>                 URL: https://issues.apache.org/jira/browse/GROOVY-5363
>             Project: Groovy
>          Issue Type: Bug
>          Components: XML Processing
>    Affects Versions: 2.0-beta-2
>            Reporter: Russel Winder
>              Labels: contrib
>             Fix For: 3.x
>
>
> Currently there is MarkupBuilder and StreamingMarkupBuilder. These should be different implementations of the same interface. The choice of streaming or non-streaming should be a constructor parameter or static virtual constructor parameter, not a difference in (visible) class name.
> The design should factor in JDK8's stream capabilities and almost certainly JDK9's module capabilities, i.e., it would belong in a new xml module along with a revamped slurper/parser. It should have a unique package structure



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)