-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix GatewayException.printStackTrace(PrintStream) (#763)
The printStackTrace() implementation taking a PrintStream (rather than a PrintWriter) in the Java GatewayException class failed to print output. This was due to the PrinterWriter used to wrap the supplied PrintStream not being flushed. This change calls the PrintStream overload with unit tests, instead of the PrintWriter overload (to which it defers) to ensure both variants behave correctly. The printStackTrace() implementation is updated to correctly flush the PrintWriter used internally to wrap the supplied PrintStream. Signed-off-by: Mark S. Lewis <[email protected]>
- Loading branch information
1 parent
d19022b
commit 102126e
Showing
2 changed files
with
35 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters