You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Miguel Munoz (Jira)" <ji...@apache.org> on 2023/12/04 08:20:00 UTC

[jira] [Commented] (IO-795) CharSequenceInputStream.reset() only works once

    [ https://issues.apache.org/jira/browse/IO-795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17792714#comment-17792714 ] 

Miguel Munoz commented on IO-795:
---------------------------------

I have discovered that calling mark(0) at the end of reset() fixes this. This lets me re-enable the unit test. I have also fixed the other disabled unit test, and will submit these soon.

> CharSequenceInputStream.reset() only works once
> -----------------------------------------------
>
>                 Key: IO-795
>                 URL: https://issues.apache.org/jira/browse/IO-795
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Streams/Writers
>            Reporter: Gary D. Gregory
>            Priority: Major
>
> Calling {{CharSequenceInputStream.reset()}} only works once. See {{CharSequenceInputStreamTest.testResetBeforeEndSetCharSequence()}}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)