On Sun, 2011-01-23 at 00:36 +, Dr Andrew John Hughes wrote:
public PrintStream (OutputStream out, boolean auto_flush, String encoding)
throws UnsupportedEncodingException
{
super (out);
+if (out == null || encoding == null)
+ throw new NullPointerException();
On Sun, 2011-01-23 at 00:36 +, Dr Andrew John Hughes wrote:
What is the current behaviour? Does it eventually throw an NPE but
just performs a lot of additional computation first? Or does it throw
some other error? Or return a bad value?
The NPEs should have some message as to what
On 23 January 2011 12:41, Pekka Enberg penb...@kernel.org wrote:
On Sun, 2011-01-23 at 00:36 +, Dr Andrew John Hughes wrote:
What is the current behaviour? Does it eventually throw an NPE but
just performs a lot of additional computation first? Or does it throw
some other error? Or
2011-01-22 Pekka Enberg penb...@kernel.org
* java/io/PrintStream.java
(PrintStream): Throw NullPointerException if out or encoding
is null to be compatible with OpenJDK.
---
java/io/PrintStream.java |9 +
1 files changed, 9 insertions(+), 0 deletions(-)
diff
On 22 January 2011 19:13, Pekka Enberg penb...@kernel.org wrote:
2011-01-22 Pekka Enberg penb...@kernel.org
* java/io/PrintStream.java
(PrintStream): Throw NullPointerException if out or encoding
is null to be compatible with OpenJDK.
---
java/io/PrintStream.java |