You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Igor V. Stolyarov (JIRA)" <ji...@apache.org> on 2006/08/03 11:36:13 UTC
[jira] Created: (HARMONY-1055) [classlib][io]
java.io.PushbackInputStream.read() throws unexpected exception when it
created from null InputStream
[classlib][io] java.io.PushbackInputStream.read() throws unexpected exception when it created from null InputStream
--------------------------------------------------------------------------------------------------------------------
Key: HARMONY-1055
URL: http://issues.apache.org/jira/browse/HARMONY-1055
Project: Harmony
Issue Type: Bug
Components: Classlib
Reporter: Igor V. Stolyarov
java.io.PushbackInputStream.read() throws unexpected exception when PushbackInputStream created from null InputStream
Test-------------------------------------------------------------------------------------
import java.io.*
public class DateTest {
public static void main(String[] args) {
try {
PushbackInputStream str = new PushbackInputStream(null);
str.read();
} catch (Exception e) {
e.printStackTrace();
}
}
}
Output------------------------------------------------------------------------------------
BEA JRockit:
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
BEA WebLogic JRockit(R) (build dra-38972-20041208-2001-win-ia32, R25.0.0-75, GC:
System optimized over throughput (initial strategy singleparpar))
java.io.IOException: Stream closed
at java.io.PushbackInputStream.ensureOpen(PushbackInputStream.java:57)
at java.io.PushbackInputStream.read(PushbackInputStream.java:116)
at DateTest.main(DateTest.java:33)
Harmony:
java version 1.5 (subset)
(c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as app
licable.
java.lang.NullPointerException
at java.io.PushbackInputStream.read(PushbackInputStream.java:135)
at DateTest.main(DateTest.java:33)
--
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
Re: [jira] Resolved: (HARMONY-1055) [classlib][io] java.io.PushbackInputStream.read()
throws unexpected exception when it created from null InputStream
Posted by Tim Ellison <t....@gmail.com>.
ack
Igor Stolyarov wrote:
> Tim,
> I've checked both Harmony-1054 and Harmony-1055 issues.
> java.io.BufferedInputStream.read() and
> java.io.PushbackInputStream.read()throw
> correct IOException.
>
--
Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.
---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org
Re: [jira] Resolved: (HARMONY-1055) [classlib][io] java.io.PushbackInputStream.read() throws unexpected exception when it created from null InputStream
Posted by Igor Stolyarov <ig...@gmail.com>.
Tim,
I've checked both Harmony-1054 and Harmony-1055 issues.
java.io.BufferedInputStream.read() and java.io.PushbackInputStream.read()throw
correct IOException.
--
Igor V. Stolyarov
Intel Middleware Products Division
[jira] Updated: (HARMONY-1055) [classlib][io]
java.io.PushbackInputStream.read() throws unexpected exception when it
created from null InputStream
Posted by "Igor V. Stolyarov (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1055?page=all ]
Igor V. Stolyarov updated HARMONY-1055:
---------------------------------------
Attachment: PushbackInputStream.patch
Suggested patch for this issue.
> [classlib][io] java.io.PushbackInputStream.read() throws unexpected exception when it created from null InputStream
> --------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-1055
> URL: http://issues.apache.org/jira/browse/HARMONY-1055
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Igor V. Stolyarov
> Attachments: PushbackInputStream.patch
>
>
> java.io.PushbackInputStream.read() throws unexpected exception when PushbackInputStream created from null InputStream
> Test-------------------------------------------------------------------------------------
> import java.io.*
> public class DateTest {
> public static void main(String[] args) {
> try {
> PushbackInputStream str = new PushbackInputStream(null);
> str.read();
> } catch (Exception e) {
> e.printStackTrace();
> }
> }
> }
> Output------------------------------------------------------------------------------------
> BEA JRockit:
> java version "1.5.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
> BEA WebLogic JRockit(R) (build dra-38972-20041208-2001-win-ia32, R25.0.0-75, GC:
> System optimized over throughput (initial strategy singleparpar))
> java.io.IOException: Stream closed
> at java.io.PushbackInputStream.ensureOpen(PushbackInputStream.java:57)
> at java.io.PushbackInputStream.read(PushbackInputStream.java:116)
> at DateTest.main(DateTest.java:33)
> Harmony:
> java version 1.5 (subset)
> (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as app
> licable.
> java.lang.NullPointerException
> at java.io.PushbackInputStream.read(PushbackInputStream.java:135)
> at DateTest.main(DateTest.java:33)
--
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-1055) [classlib][io]
java.io.PushbackInputStream.read() throws unexpected exception when it
created from null InputStream
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1055?page=all ]
Tim Ellison resolved HARMONY-1055.
----------------------------------
Resolution: Fixed
Igor,
I fixed it in a different way in the LUNI module at repo revision r428682.
Please check that this fully resolves your problem.
> [classlib][io] java.io.PushbackInputStream.read() throws unexpected exception when it created from null InputStream
> --------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-1055
> URL: http://issues.apache.org/jira/browse/HARMONY-1055
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Igor V. Stolyarov
> Assigned To: Tim Ellison
> Attachments: PushbackInputStream.patch
>
>
> java.io.PushbackInputStream.read() throws unexpected exception when PushbackInputStream created from null InputStream
> Test-------------------------------------------------------------------------------------
> import java.io.*
> public class DateTest {
> public static void main(String[] args) {
> try {
> PushbackInputStream str = new PushbackInputStream(null);
> str.read();
> } catch (Exception e) {
> e.printStackTrace();
> }
> }
> }
> Output------------------------------------------------------------------------------------
> BEA JRockit:
> java version "1.5.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
> BEA WebLogic JRockit(R) (build dra-38972-20041208-2001-win-ia32, R25.0.0-75, GC:
> System optimized over throughput (initial strategy singleparpar))
> java.io.IOException: Stream closed
> at java.io.PushbackInputStream.ensureOpen(PushbackInputStream.java:57)
> at java.io.PushbackInputStream.read(PushbackInputStream.java:116)
> at DateTest.main(DateTest.java:33)
> Harmony:
> java version 1.5 (subset)
> (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as app
> licable.
> java.lang.NullPointerException
> at java.io.PushbackInputStream.read(PushbackInputStream.java:135)
> at DateTest.main(DateTest.java:33)
--
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-1055) [classlib][io]
java.io.PushbackInputStream.read() throws unexpected exception when it
created from null InputStream
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1055?page=all ]
Tim Ellison reassigned HARMONY-1055:
------------------------------------
Assignee: Tim Ellison
> [classlib][io] java.io.PushbackInputStream.read() throws unexpected exception when it created from null InputStream
> --------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-1055
> URL: http://issues.apache.org/jira/browse/HARMONY-1055
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Igor V. Stolyarov
> Assigned To: Tim Ellison
> Attachments: PushbackInputStream.patch
>
>
> java.io.PushbackInputStream.read() throws unexpected exception when PushbackInputStream created from null InputStream
> Test-------------------------------------------------------------------------------------
> import java.io.*
> public class DateTest {
> public static void main(String[] args) {
> try {
> PushbackInputStream str = new PushbackInputStream(null);
> str.read();
> } catch (Exception e) {
> e.printStackTrace();
> }
> }
> }
> Output------------------------------------------------------------------------------------
> BEA JRockit:
> java version "1.5.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
> BEA WebLogic JRockit(R) (build dra-38972-20041208-2001-win-ia32, R25.0.0-75, GC:
> System optimized over throughput (initial strategy singleparpar))
> java.io.IOException: Stream closed
> at java.io.PushbackInputStream.ensureOpen(PushbackInputStream.java:57)
> at java.io.PushbackInputStream.read(PushbackInputStream.java:116)
> at DateTest.main(DateTest.java:33)
> Harmony:
> java version 1.5 (subset)
> (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as app
> licable.
> java.lang.NullPointerException
> at java.io.PushbackInputStream.read(PushbackInputStream.java:135)
> at DateTest.main(DateTest.java:33)
--
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-1055) [classlib][io]
java.io.PushbackInputStream.read() throws unexpected exception when it
created from null InputStream
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1055?page=all ]
Tim Ellison closed HARMONY-1055.
--------------------------------
Verified by Igor
http://mail-archives.apache.org/mod_mbox/incubator-harmony-dev/200608.mbox/%3c78ded78f0608040522t48a3703dw11b40c416c6a53f3@mail.gmail.com%3e
> [classlib][io] java.io.PushbackInputStream.read() throws unexpected exception when it created from null InputStream
> --------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-1055
> URL: http://issues.apache.org/jira/browse/HARMONY-1055
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Igor V. Stolyarov
> Assigned To: Tim Ellison
> Attachments: PushbackInputStream.patch
>
>
> java.io.PushbackInputStream.read() throws unexpected exception when PushbackInputStream created from null InputStream
> Test-------------------------------------------------------------------------------------
> import java.io.*
> public class DateTest {
> public static void main(String[] args) {
> try {
> PushbackInputStream str = new PushbackInputStream(null);
> str.read();
> } catch (Exception e) {
> e.printStackTrace();
> }
> }
> }
> Output------------------------------------------------------------------------------------
> BEA JRockit:
> java version "1.5.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
> BEA WebLogic JRockit(R) (build dra-38972-20041208-2001-win-ia32, R25.0.0-75, GC:
> System optimized over throughput (initial strategy singleparpar))
> java.io.IOException: Stream closed
> at java.io.PushbackInputStream.ensureOpen(PushbackInputStream.java:57)
> at java.io.PushbackInputStream.read(PushbackInputStream.java:116)
> at DateTest.main(DateTest.java:33)
> Harmony:
> java version 1.5 (subset)
> (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as app
> licable.
> java.lang.NullPointerException
> at java.io.PushbackInputStream.read(PushbackInputStream.java:135)
> at DateTest.main(DateTest.java:33)
--
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