javanna commented on code in PR #16968:
URL: https://github.com/apache/lucene/pull/16968#discussion_r4458570895
##########
lucene/core/src/java/org/apache/lucene/util/automaton/RegExp.java:
##########
@@ -415,14 +415,10 @@ public enum Kind {
// ----- Matching flags ( > 0xff <= 0xffff ) ------
- /**
- * Allows case-insensitive matching of ASCII characters.
- *
- * <p>This flag has been deprecated in favor of {@link #CASE_INSENSITIVE}
that supports the full
- * range of Unicode characters. Usage of this flag now has the same behavior
as {@link
- * #CASE_INSENSITIVE}
- */
- @Deprecated public static final int ASCII_CASE_INSENSITIVE = 0x0100;
+ // Question for review: should we drop the constant instead? Keeping it
makes raw 0x0100 flag
+ // values from 10.x
Review Comment:
I see, thanks for explaining that. I guess the alternatives are:
1) keep the flag around internally and adjust its value transparently so it
still works (your approach)
2) remove support for the flag, but throw a runtime error when it gets used
3) remove any notion of the flag and silently ignore it when it gets used
I am not a fan of 3). The first option seems like it does not force users to
move away from it. Shall we throw a runtime error when `0x0100` is provided in
the constructor and clearly document the exact constructor call that needs to
be adjusted in the migrate guide?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]