You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Catherine Hope (JIRA)" <ji...@apache.org> on 2009/08/05 17:25:14 UTC

[jira] Created: (HARMONY-6293) [classlib][luni] PipedWriter.flush should throw IOException if pipe is closed (Java 6 only)

[classlib][luni] PipedWriter.flush should throw IOException if pipe is closed (Java 6 only)
-------------------------------------------------------------------------------------------

                 Key: HARMONY-6293
                 URL: https://issues.apache.org/jira/browse/HARMONY-6293
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: All
            Reporter: Catherine Hope
            Priority: Minor


PipedWriter.flush should throw an IOException if called on a pipe that's already been closed.  This is specified in the Java 6 API only.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (HARMONY-6293) [classlib][luni] PipedWriter.flush should throw IOException if pipe is closed (Java 6 only)

Posted by "Catherine Hope (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Catherine Hope closed HARMONY-6293.
-----------------------------------


Verified

> [classlib][luni] PipedWriter.flush should throw IOException if pipe is closed (Java 6 only)
> -------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6293
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6293
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: All
>            Reporter: Catherine Hope
>            Assignee: Mark Hindess
>            Priority: Minor
>             Fix For: 5.0M11
>
>         Attachments: 6293-patch.txt
>
>
> PipedWriter.flush should throw an IOException if called on a pipe that's already been closed.  This is specified in the Java 6 API only.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-6293) [classlib][luni] PipedWriter.flush should throw IOException if pipe is closed (Java 6 only)

Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-6293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12739699#action_12739699 ] 

Mark Hindess commented on HARMONY-6293:
---------------------------------------

Catherine,

I have applied your patch, in r801377, with the following changes:

1) Converted tabs to spaces - please disable tabs in your editor for future patches.

2) Moved brace after synchronized(lock) to same line to be more consistent.

3) Removed the System.out.println since we aim to keep test output clean if possible.

Please confirm that it has been applied as expected.

I also notice that despite the spec the first test fails for me on the RI 6.0 x86_64.  So please do *not* close this JIRA yet.




> [classlib][luni] PipedWriter.flush should throw IOException if pipe is closed (Java 6 only)
> -------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6293
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6293
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: All
>            Reporter: Catherine Hope
>            Assignee: Mark Hindess
>            Priority: Minor
>         Attachments: 6293-patch.txt
>
>
> PipedWriter.flush should throw an IOException if called on a pipe that's already been closed.  This is specified in the Java 6 API only.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HARMONY-6293) [classlib][luni] PipedWriter.flush should throw IOException if pipe is closed (Java 6 only)

Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Hindess reassigned HARMONY-6293:
-------------------------------------

    Assignee: Mark Hindess

> [classlib][luni] PipedWriter.flush should throw IOException if pipe is closed (Java 6 only)
> -------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6293
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6293
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: All
>            Reporter: Catherine Hope
>            Assignee: Mark Hindess
>            Priority: Minor
>         Attachments: 6293-patch.txt
>
>
> PipedWriter.flush should throw an IOException if called on a pipe that's already been closed.  This is specified in the Java 6 API only.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HARMONY-6293) [classlib][luni] PipedWriter.flush should throw IOException if pipe is closed (Java 6 only)

Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Hindess resolved HARMONY-6293.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 5.0M11

Catherine, I've made a second commit at r801389 in order to make the test pass on the RI for me too.  If you think both the commits are reasonable then please close this JIRA.


> [classlib][luni] PipedWriter.flush should throw IOException if pipe is closed (Java 6 only)
> -------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6293
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6293
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: All
>            Reporter: Catherine Hope
>            Assignee: Mark Hindess
>            Priority: Minor
>             Fix For: 5.0M11
>
>         Attachments: 6293-patch.txt
>
>
> PipedWriter.flush should throw an IOException if called on a pipe that's already been closed.  This is specified in the Java 6 API only.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-6293) [classlib][luni] PipedWriter.flush should throw IOException if pipe is closed (Java 6 only)

Posted by "Catherine Hope (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Catherine Hope updated HARMONY-6293:
------------------------------------

    Attachment: 6293-patch.txt

To be committed to Java 6 branch

Changes: 
PipedWriter.flush() now throws IOException if pipe has been previously closed
PipedReader.flush() (not an exposed method) now throws IOException if pipe has been closed
PipedReader.close() wasn't setting the isClosed variable to true
PipedWriterTest new test test_flushAfterClose that closes a PipedWriter then tries to flush it, and then repeats this with a PipedWriter constructed from a PipedReader and closing the reader (the RI throws the same IOException with closed pipe message in this case)

> [classlib][luni] PipedWriter.flush should throw IOException if pipe is closed (Java 6 only)
> -------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6293
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6293
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: All
>            Reporter: Catherine Hope
>            Priority: Minor
>         Attachments: 6293-patch.txt
>
>
> PipedWriter.flush should throw an IOException if called on a pipe that's already been closed.  This is specified in the Java 6 API only.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.