You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Yasser Zamani (JIRA)" <ji...@apache.org> on 2018/02/02 08:08:00 UTC
[jira] [Resolved] (WW-4546) unclosed instantiation of PrintWriter
[ https://issues.apache.org/jira/browse/WW-4546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yasser Zamani resolved WW-4546.
-------------------------------
Resolution: Not A Problem
> unclosed instantiation of PrintWriter
> --------------------------------------
>
> Key: WW-4546
> URL: https://issues.apache.org/jira/browse/WW-4546
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.3.24
> Reporter: songwanging
> Assignee: Stefaan Dutry
> Priority: Minor
> Fix For: 2.5.15
>
>
> In method execute() of class XSLTResult.java (src\core\src\main\java\org\apache\struts2\views\xslt\XSLTResult.java).
> The instantiation of PrintWriter should be closed after all writing is done.
> {code:java}
> public void execute(ActionInvocation invocation) throws Exception {
> …
> PrintWriter writer = response.getWriter();
> ...
> writer.flush(); // ...and flush...
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)