You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2025/09/24 09:18:15 UTC

(lucene) branch branch_9_12 updated: Fix compilation with Java 11

This is an automated email from the ASF dual-hosted git repository.

uschindler pushed a commit to branch branch_9_12
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/branch_9_12 by this push:
     new f965e930673 Fix compilation with Java 11
f965e930673 is described below

commit f965e930673c1f5cb478dc6a8907f5fc4ef7b539
Author: Uwe Schindler <us...@apache.org>
AuthorDate: Wed Sep 24 11:18:04 2025 +0200

    Fix compilation with Java 11
---
 .../src/test/org/apache/lucene/tests/mockfile/TestWindowsFS.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lucene/test-framework/src/test/org/apache/lucene/tests/mockfile/TestWindowsFS.java b/lucene/test-framework/src/test/org/apache/lucene/tests/mockfile/TestWindowsFS.java
index b1bcbfdd36b..c7a5dc41751 100644
--- a/lucene/test-framework/src/test/org/apache/lucene/tests/mockfile/TestWindowsFS.java
+++ b/lucene/test-framework/src/test/org/apache/lucene/tests/mockfile/TestWindowsFS.java
@@ -200,7 +200,7 @@ public class TestWindowsFS extends MockFileSystemTestCase {
       // We need at least 2 chars before the special character, because resolving a drive
       // letter (C:) or a path starting with "/" will not fail on real Windows.
       fileName =
-          RandomStrings.randomAsciiLettersOfLength(r, r.nextInt(2, 10))
+          RandomStrings.randomAsciiLettersOfLength(r, r.nextInt(8) + 2)
               + reservedCharacters[r.nextInt(reservedCharacters.length)]
               + RandomStrings.randomAsciiLettersOfLength(r, 1 + r.nextInt(9));
     } else {