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

Remove all accessClassInPackage permissions / remove uses AccessibleObject#setAccessible() to make ready for Java 9 Jigsaw

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.4, 6.0
    • None
    • New

    Description

      With jigsaw builds this stuff is not allowed, its no longer an option of security manager or not.

      So we should remove these permissions and fix the test leaks, crappy code, remove hacks, etc.

      If the hack is really somehow needed for some special reason (e.g. well known case like mmap), it needs to gracefully handle not being able to do this, the code and tests should still "work" if it cannot do the hack.

      Otherwise there will be problems for java 9.

      Attachments

        1. LUCENE-6795-forbids.patch
          29 kB
          Uwe Schindler
        2. LUCENE-6795-forbids.patch
          14 kB
          Uwe Schindler

        Issue Links

          Activity

            People

              uschindler Uwe Schindler
              rcmuir Robert Muir
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: