ChrisHegarty commented on code in PR #12311:
URL: https://github.com/apache/lucene/pull/12311#discussion_r1199236929


##########
lucene/core/src/java/org/apache/lucene/internal/vector/VectorUtilProvider.java:
##########
@@ -76,4 +77,10 @@ static boolean vectorModulePresentAndReadable() {
     }
     return false;
   }
+
+  // Workaround for JDK-8301190, avoids assertion when default locale is say 
tr.
+  @SuppressForbidden(reason = "required to determine if non-workable locale")
+  static boolean useVectorAPI() {
+    return 'I' == int.class.getSimpleName().toUpperCase().charAt(0);

Review Comment:
   Yeah, sorry for this - I was a bit distracted!  I just committed your 
suggestion, thanks. 
[0779fcb](https://github.com/apache/lucene/pull/12311/commits/0779fcb801cc668a943bb5bbca44df5272321f59)



-- 
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-unsubscr...@lucene.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to