paulirwin opened a new pull request, #1089:
URL: https://github.com/apache/lucenenet/pull/1089

   - [X] You've read the [Contributor 
Guide](https://github.com/apache/lucenenet/blob/main/CONTRIBUTING.md) and [Code 
of Conduct](https://www.apache.org/foundation/policies/conduct.html).
   - [X] You've included unit or integration tests for your change, where 
applicable.
   - [X] You've included inline docs for your change, where applicable.
   - [X] There's an open issue for the PR that you are making. If you'd like to 
propose a change, please [open an 
issue](https://github.com/apache/lucenenet/issues/new/choose) to discuss the 
change or find an existing issue.
   
   Use DecoderFallback.ExceptionFallback to match Java's 
`CodingErrorAction.REPORT`
   
   Fixes #1076
   
   ## Description
   
   This adds an extension method to make it easy to match Java's 
`CodingErrorAction.REPORT` use in `CharSet` where it will throw an exception 
upon encountering invalid character sequences. All places where this is used in 
Lucene have been updated to use this extension method.
   
   This should improve reliability of ensuring valid input in cases where 
Lucene would throw on invalid input, particularly with 
`IOUtils.GetDecodingReader` which, per its docs, was intended to throw on 
invalid input, but was doing a character replacement in Lucene.NET previously.


-- 
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: dev-unsubscr...@lucenenet.apache.org

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

Reply via email to