-
Notifications
You must be signed in to change notification settings - Fork 640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Review use of Encoding fallback handling #1076
Comments
paulirwin
added a commit
to paulirwin/lucene.net
that referenced
this issue
Jan 6, 2025
4 tasks
paulirwin
added a commit
to paulirwin/lucene.net
that referenced
this issue
Jan 11, 2025
paulirwin
added a commit
to paulirwin/lucene.net
that referenced
this issue
Jan 11, 2025
paulirwin
added a commit
to paulirwin/lucene.net
that referenced
this issue
Jan 11, 2025
paulirwin
added a commit
to paulirwin/lucene.net
that referenced
this issue
Jan 11, 2025
paulirwin
added a commit
to paulirwin/lucene.net
that referenced
this issue
Jan 11, 2025
paulirwin
added a commit
to paulirwin/lucene.net
that referenced
this issue
Jan 11, 2025
paulirwin
added a commit
that referenced
this issue
Jan 12, 2025
…on.REPORT, #1076 (#1089) * Use DecoderFallback.ExceptionFallback to match Java behavior, #1076 * Add unit test for WithDecoderExceptionFallback * Fix unit test namespace and doc comment * Lucene.Net.Support.Buffers: Added ArrayPoolExtensions class to simplify returning arrays that might be null * Lucene.Net.Index.Term::ToString(): Optimized writing UTF8 string on target frameworks that support System.Text.Unicode.Utf8. Added tests to verify fallback is working. * Cache decoder fallback encoding lookup, #1076 * Treat Encoder/DecoderFallbackExceptions as IOExceptions to match Java, #1076 * Fix translation of replacement fallback test code, IOException/RuntimeException tests * Use Encoding.Default instead of GetEncoding(0), #1076 * Cache GB2312 encoding lookup, #1076 * Replace StandardCharsets.UTF_8 with Encoding.UTF8 in two tests, #1076 * Fix test extension method for detecting IllegalArgumentException, #1076 * Cascade call from IsIllegalArgumentException --------- Co-authored-by: Shad Storhaug <shad@shadstorhaug.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
Task description
There are several places where Lucene uses Java's
CodingErrorAction.REPORT
to throw an exception on failing to decode data. The default in .NET's Encoding class is to use replacements rather than throw exceptions. We should review these usages to determine if we should be usingDecoderFallback.ExceptionFallback
in these places.The text was updated successfully, but these errors were encountered: