Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-9587

Tests in gradle do not run with "--illegal-access=deny" like in 8.x

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 9.0
    • 9.0
    • general/test
    • New

    Description

      In LUCENE-8035 we added --illegal-access=deny to the JVM options to enfoce that no code is using any internal JDK APIs.

      https://github.com/apache/lucene-solr/blob/branch_8x/lucene/common-build.xml#L1053-L1055

      While changing to Gradle we lost this option somehow. We need to add it back, as JDK 16 or latest JDK 17 will default to this setting anyways, so we should again make sure that testing works under restricted conditions! Here is the JEP: https://openjdk.java.net/jeps/396

      Attachments

        Issue Links

          Activity

            People

              uschindler Uwe Schindler
              uschindler Uwe Schindler
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m