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

qxo closed HTTPCLIENT-2264.
---------------------------
    Resolution: Abandoned

wrong project, sorry

> PomUtils.addNewModule Pretty-Printing has issue on java 9+
> ----------------------------------------------------------
>
>                 Key: HTTPCLIENT-2264
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2264
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>            Reporter: qxo
>            Priority: Minor
>
>  
> *As of Java 9, the _Transformer_ class's pretty-print feature doesn't define 
> the actual format. Therefore, whitespace-only nodes will be outputted as 
> well.* This has been discussed in this [JDK bug 
> ticket|https://bugs.openjdk.java.net/browse/JDK-8262285?attachmentViewMode=list].
>  Also, [Java 9's release 
> note|https://www.oracle.com/java/technologies/javase/9-notes.html] has 
> explained this in the xml/jaxp section.
> *If we want our pretty-print method to always generate the same format under 
> various Java versions, we need to provide a stylesheet file.*
> ref:
>    [https://bugs.openjdk.java.net/browse/JDK-8262285?attachmentViewMode=list]
>    
> [https://www.baeldung.com/java-pretty-print-xml#pretty-printing-xml-with-the-transformer-class]
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to