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

Fix RamUsageEstimator's access to private fields

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.5, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: