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 2022/01/06 18:09:51 UTC

[lucene] 02/03: LUCENE-10328: open up certain packages for junit and the test framework (reflective access).

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

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

commit f568cfa15aa278106e7f2627bb98c6da004a2553
Author: Dawid Weiss <da...@carrotsearch.com>
AuthorDate: Wed Jan 5 21:01:18 2022 +0100

    LUCENE-10328: open up certain packages for junit and the test framework (reflective access).
---
 lucene/core/src/java/module-info.java           | 3 +++
 lucene/test-framework/src/java/module-info.java | 4 ++++
 2 files changed, 7 insertions(+)

diff --git a/lucene/core/src/java/module-info.java b/lucene/core/src/java/module-info.java
index f56b194..02fc3ff 100644
--- a/lucene/core/src/java/module-info.java
+++ b/lucene/core/src/java/module-info.java
@@ -52,6 +52,9 @@ module org.apache.lucene.core {
   // Only export internal packages to the test framework.
   exports org.apache.lucene.internal.tests to
       org.apache.lucene.test_framework;
+  // Open certain packages for the test framework (ram usage tester).
+  opens org.apache.lucene.document to
+      org.apache.lucene.test_framework;
 
   provides org.apache.lucene.analysis.TokenizerFactory with
       org.apache.lucene.analysis.standard.StandardTokenizerFactory;
diff --git a/lucene/test-framework/src/java/module-info.java b/lucene/test-framework/src/java/module-info.java
index d87d56a..893d571 100644
--- a/lucene/test-framework/src/java/module-info.java
+++ b/lucene/test-framework/src/java/module-info.java
@@ -23,6 +23,10 @@ module org.apache.lucene.test_framework {
   requires transitive junit;
   requires transitive randomizedtesting.runner;
 
+  // Open certain packages for junit because it scans methods via reflection.
+  opens org.apache.lucene.tests.index to
+      junit;
+
   exports org.apache.lucene.tests.analysis.standard;
   exports org.apache.lucene.tests.analysis;
   exports org.apache.lucene.tests.codecs.asserting;