You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Denis Kishenko (JIRA)" <ji...@apache.org> on 2006/08/15 15:32:13 UTC
[jira] Created: (HARMONY-1198) [classlib][rmi]
LogStream.setOutputStream(null) expected NPE
[classlib][rmi] LogStream.setOutputStream(null) expected NPE
------------------------------------------------------------
Key: HARMONY-1198
URL: http://issues.apache.org/jira/browse/HARMONY-1198
Project: Harmony
Issue Type: Bug
Components: Classlib
Reporter: Denis Kishenko
Harmony implementation of LogStream.setOutputStream() doesn't throw NPE if parameter is null.
================= Spec ==================
Nothing about exceptions
=================== Test =================
import java.rmi.server.*;
import java.io.*;
public class bug9407 {
public static void main(String [] args) {
try {
LogStream ls = LogStream.log("proba");
System.out.println("LogStream: "+ls);
ls.setOutputStream(null);
System.out.println("Test failed");
} catch (NullPointerException e) {
System.out.println("Test passed: " + e);
} catch (Throwable e) {
System.out.println("Test failed: unexpected error");
e.printStackTrace();
}
}
}
================= Output =================
RI
LogStream: proba
Test passed: java.lang.NullPointerException
Harmony
LogStream: LogStream[proba]
Test failed
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Assigned: (HARMONY-1198) [classlib][rmi]
LogStream.setOutputStream(null) expected NPE
Posted by "Nathan Beyer (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1198?page=all ]
Nathan Beyer reassigned HARMONY-1198:
-------------------------------------
Assignee: Nathan Beyer
> [classlib][rmi] LogStream.setOutputStream(null) expected NPE
> ------------------------------------------------------------
>
> Key: HARMONY-1198
> URL: http://issues.apache.org/jira/browse/HARMONY-1198
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Denis Kishenko
> Assigned To: Nathan Beyer
> Attachments: 1198-LogStream.patch
>
>
> Harmony implementation of LogStream.setOutputStream() doesn't throw NPE if parameter is null.
> ================= Spec ==================
> Nothing about exceptions
> =================== Test =================
> import java.rmi.server.*;
> import java.io.*;
> public class bug9407 {
> public static void main(String [] args) {
> try {
> LogStream ls = LogStream.log("proba");
> System.out.println("LogStream: "+ls);
> ls.setOutputStream(null);
> System.out.println("Test failed");
> } catch (NullPointerException e) {
> System.out.println("Test passed: " + e);
> } catch (Throwable e) {
> System.out.println("Test failed: unexpected error");
> e.printStackTrace();
> }
> }
> }
> ================= Output =================
> RI
> LogStream: proba
> Test passed: java.lang.NullPointerException
> Harmony
> LogStream: LogStream[proba]
> Test failed
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (HARMONY-1198) [classlib][rmi]
LogStream.setOutputStream(null) expected NPE
Posted by "Denis Kishenko (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1198?page=comments#action_12434676 ]
Denis Kishenko commented on HARMONY-1198:
-----------------------------------------
Verified, thanks
> [classlib][rmi] LogStream.setOutputStream(null) expected NPE
> ------------------------------------------------------------
>
> Key: HARMONY-1198
> URL: http://issues.apache.org/jira/browse/HARMONY-1198
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Denis Kishenko
> Assigned To: Nathan Beyer
> Attachments: 1198-LogStream.patch, 1198-LogStreamTest.patch
>
>
> Harmony implementation of LogStream.setOutputStream() doesn't throw NPE if parameter is null.
> ================= Spec ==================
> Nothing about exceptions
> =================== Test =================
> import java.rmi.server.*;
> import java.io.*;
> public class bug9407 {
> public static void main(String [] args) {
> try {
> LogStream ls = LogStream.log("proba");
> System.out.println("LogStream: "+ls);
> ls.setOutputStream(null);
> System.out.println("Test failed");
> } catch (NullPointerException e) {
> System.out.println("Test passed: " + e);
> } catch (Throwable e) {
> System.out.println("Test failed: unexpected error");
> e.printStackTrace();
> }
> }
> }
> ================= Output =================
> RI
> LogStream: proba
> Test passed: java.lang.NullPointerException
> Harmony
> LogStream: LogStream[proba]
> Test failed
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (HARMONY-1198) [classlib][rmi]
LogStream.setOutputStream(null) expected NPE
Posted by "Nathan Beyer (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1198?page=all ]
Nathan Beyer closed HARMONY-1198.
---------------------------------
Verified.
> [classlib][rmi] LogStream.setOutputStream(null) expected NPE
> ------------------------------------------------------------
>
> Key: HARMONY-1198
> URL: http://issues.apache.org/jira/browse/HARMONY-1198
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Denis Kishenko
> Assigned To: Nathan Beyer
> Attachments: 1198-LogStream.patch, 1198-LogStreamTest.patch
>
>
> Harmony implementation of LogStream.setOutputStream() doesn't throw NPE if parameter is null.
> ================= Spec ==================
> Nothing about exceptions
> =================== Test =================
> import java.rmi.server.*;
> import java.io.*;
> public class bug9407 {
> public static void main(String [] args) {
> try {
> LogStream ls = LogStream.log("proba");
> System.out.println("LogStream: "+ls);
> ls.setOutputStream(null);
> System.out.println("Test failed");
> } catch (NullPointerException e) {
> System.out.println("Test passed: " + e);
> } catch (Throwable e) {
> System.out.println("Test failed: unexpected error");
> e.printStackTrace();
> }
> }
> }
> ================= Output =================
> RI
> LogStream: proba
> Test passed: java.lang.NullPointerException
> Harmony
> LogStream: LogStream[proba]
> Test failed
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (HARMONY-1198) [classlib][rmi]
LogStream.setOutputStream(null) expected NPE
Posted by "Denis Kishenko (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1198?page=all ]
Denis Kishenko updated HARMONY-1198:
------------------------------------
Attachment: 1198-LogStreamTest.patch
This is test for path, sorry for response so late.
"proba" isn't file name it's just name of LogStream.
> [classlib][rmi] LogStream.setOutputStream(null) expected NPE
> ------------------------------------------------------------
>
> Key: HARMONY-1198
> URL: http://issues.apache.org/jira/browse/HARMONY-1198
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Denis Kishenko
> Assigned To: Nathan Beyer
> Attachments: 1198-LogStream.patch, 1198-LogStreamTest.patch
>
>
> Harmony implementation of LogStream.setOutputStream() doesn't throw NPE if parameter is null.
> ================= Spec ==================
> Nothing about exceptions
> =================== Test =================
> import java.rmi.server.*;
> import java.io.*;
> public class bug9407 {
> public static void main(String [] args) {
> try {
> LogStream ls = LogStream.log("proba");
> System.out.println("LogStream: "+ls);
> ls.setOutputStream(null);
> System.out.println("Test failed");
> } catch (NullPointerException e) {
> System.out.println("Test passed: " + e);
> } catch (Throwable e) {
> System.out.println("Test failed: unexpected error");
> e.printStackTrace();
> }
> }
> }
> ================= Output =================
> RI
> LogStream: proba
> Test passed: java.lang.NullPointerException
> Harmony
> LogStream: LogStream[proba]
> Test failed
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (HARMONY-1198) [classlib][rmi]
LogStream.setOutputStream(null) expected NPE
Posted by "Nathan Beyer (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1198?page=comments#action_12428890 ]
Nathan Beyer commented on HARMONY-1198:
---------------------------------------
Can you submit the patch again with a longer path than just the file name? Also, can you include a patch for a TestCase?
Thanks.
> [classlib][rmi] LogStream.setOutputStream(null) expected NPE
> ------------------------------------------------------------
>
> Key: HARMONY-1198
> URL: http://issues.apache.org/jira/browse/HARMONY-1198
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Denis Kishenko
> Attachments: 1198-LogStream.patch
>
>
> Harmony implementation of LogStream.setOutputStream() doesn't throw NPE if parameter is null.
> ================= Spec ==================
> Nothing about exceptions
> =================== Test =================
> import java.rmi.server.*;
> import java.io.*;
> public class bug9407 {
> public static void main(String [] args) {
> try {
> LogStream ls = LogStream.log("proba");
> System.out.println("LogStream: "+ls);
> ls.setOutputStream(null);
> System.out.println("Test failed");
> } catch (NullPointerException e) {
> System.out.println("Test passed: " + e);
> } catch (Throwable e) {
> System.out.println("Test failed: unexpected error");
> e.printStackTrace();
> }
> }
> }
> ================= Output =================
> RI
> LogStream: proba
> Test passed: java.lang.NullPointerException
> Harmony
> LogStream: LogStream[proba]
> Test failed
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (HARMONY-1198) [classlib][rmi]
LogStream.setOutputStream(null) expected NPE
Posted by "Denis Kishenko (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1198?page=all ]
Denis Kishenko updated HARMONY-1198:
------------------------------------
Attachment: 1198-LogStream.patch
patch
> [classlib][rmi] LogStream.setOutputStream(null) expected NPE
> ------------------------------------------------------------
>
> Key: HARMONY-1198
> URL: http://issues.apache.org/jira/browse/HARMONY-1198
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Denis Kishenko
> Attachments: 1198-LogStream.patch
>
>
> Harmony implementation of LogStream.setOutputStream() doesn't throw NPE if parameter is null.
> ================= Spec ==================
> Nothing about exceptions
> =================== Test =================
> import java.rmi.server.*;
> import java.io.*;
> public class bug9407 {
> public static void main(String [] args) {
> try {
> LogStream ls = LogStream.log("proba");
> System.out.println("LogStream: "+ls);
> ls.setOutputStream(null);
> System.out.println("Test failed");
> } catch (NullPointerException e) {
> System.out.println("Test passed: " + e);
> } catch (Throwable e) {
> System.out.println("Test failed: unexpected error");
> e.printStackTrace();
> }
> }
> }
> ================= Output =================
> RI
> LogStream: proba
> Test passed: java.lang.NullPointerException
> Harmony
> LogStream: LogStream[proba]
> Test failed
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Resolved: (HARMONY-1198) [classlib][rmi]
LogStream.setOutputStream(null) expected NPE
Posted by "Nathan Beyer (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1198?page=all ]
Nathan Beyer resolved HARMONY-1198.
-----------------------------------
Resolution: Fixed
Patch applied; please verify. Thanks.
> [classlib][rmi] LogStream.setOutputStream(null) expected NPE
> ------------------------------------------------------------
>
> Key: HARMONY-1198
> URL: http://issues.apache.org/jira/browse/HARMONY-1198
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Denis Kishenko
> Assigned To: Nathan Beyer
> Attachments: 1198-LogStream.patch, 1198-LogStreamTest.patch
>
>
> Harmony implementation of LogStream.setOutputStream() doesn't throw NPE if parameter is null.
> ================= Spec ==================
> Nothing about exceptions
> =================== Test =================
> import java.rmi.server.*;
> import java.io.*;
> public class bug9407 {
> public static void main(String [] args) {
> try {
> LogStream ls = LogStream.log("proba");
> System.out.println("LogStream: "+ls);
> ls.setOutputStream(null);
> System.out.println("Test failed");
> } catch (NullPointerException e) {
> System.out.println("Test passed: " + e);
> } catch (Throwable e) {
> System.out.println("Test failed: unexpected error");
> e.printStackTrace();
> }
> }
> }
> ================= Output =================
> RI
> LogStream: proba
> Test passed: java.lang.NullPointerException
> Harmony
> LogStream: LogStream[proba]
> Test failed
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira