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

Fix RamUsageEstimator's access to private fields

    XMLWordPrintableJSON

Details

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

    Description

      many classes have in their clinit something like:

      static final int BASE_SIZE = RamUsageEstimator.shallowSizeOf(...)
      

      This does inspection of private fields to compute the size, but requires RuntimePermission("accessDeclaredMembers").

      Attachments

        1. LUCENE-6923.patch
          1 kB
          Robert Muir

        Activity

          People

            Unassigned Unassigned
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: