You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "elharo (via GitHub)" <gi...@apache.org> on 2023/12/17 15:50:12 UTC

[PR] [IO-781] Make available() more correct in the face of multibyte encodings [commons-io]

elharo opened a new pull request, #525:
URL: https://github.com/apache/commons-io/pull/525

   Per contract, available() is not required to return the exact or maximum number of bytes available without blocking. It is required to return a number less than or equal to that. Always returning 0 is an acceptable implementation (though here we can do better than that). 
   
   @garydgregory 
   
   FYI locally the build fails on JDK 8 with an apparently unrelated error:
   
   [ERROR] /Users/elharo/commons-io/src/test/java/org/apache/commons/io/file/FilesUncheckTest.java:[99,25] cannot access org.apache.commons.io.file.FilesUncheck
     bad class file: /Users/elharo/commons-io/target/classes/org/apache/commons/io/file/FilesUncheck.class
       undeclared type variable: A
       Please remove or make sure it appears in the correct subdirectory of the classpath.
   
   Let's see what the CI does with this. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [IO-781] Make CharSequenceInputStream.available() more correct in the face of multibyte encodings [commons-io]

Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory merged PR #525:
URL: https://github.com/apache/commons-io/pull/525


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [IO-781] Make CharSequenceInputStream.available() more correct in the face of multibyte encodings [commons-io]

Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory commented on PR #525:
URL: https://github.com/apache/commons-io/pull/525#issuecomment-1859287845

   @elharo TY!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [IO-781] Make CharSequenceInputStream.available() more correct in the face of multibyte encodings [commons-io]

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #525:
URL: https://github.com/apache/commons-io/pull/525#issuecomment-1859261422

   ## [Codecov](https://app.codecov.io/gh/apache/commons-io/pull/525?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   Attention: `3 lines` in your changes are missing coverage. Please review.
   > Comparison is base [(`a8ee7b9`)](https://app.codecov.io/gh/apache/commons-io/commit/a8ee7b9defba5ed7c83c1fa06b4020930ea5f00e?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) 86.31% compared to head [(`8e3603c`)](https://app.codecov.io/gh/apache/commons-io/pull/525?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) 86.35%.
   > Report is 1 commits behind head on master.
   
   | [Files](https://app.codecov.io/gh/apache/commons-io/pull/525?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
   |---|---|---|
   | [...ache/commons/io/input/CharSequenceInputStream.java](https://app.codecov.io/gh/apache/commons-io/pull/525?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2NvbW1vbnMvaW8vaW5wdXQvQ2hhclNlcXVlbmNlSW5wdXRTdHJlYW0uamF2YQ==) | 50.00% | [3 Missing :warning: ](https://app.codecov.io/gh/apache/commons-io/pull/525?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   
   <details><summary>Additional details and impacted files</summary>
   
   
   ```diff
   @@             Coverage Diff              @@
   ##             master     #525      +/-   ##
   ============================================
   + Coverage     86.31%   86.35%   +0.04%     
     Complexity     3438     3438              
   ============================================
     Files           229      229              
     Lines          8154     8159       +5     
     Branches        959      959              
   ============================================
   + Hits           7038     7046       +8     
   + Misses          834      830       -4     
   - Partials        282      283       +1     
   ```
   
   
   
   </details>
   
   [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/commons-io/pull/525?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org