You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2015/12/05 16:46:10 UTC

[jira] [Updated] (LUCENE-6923) Fix RamUsageEstimator's access to private fields

     [ https://issues.apache.org/jira/browse/LUCENE-6923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Muir updated LUCENE-6923:
--------------------------------
    Attachment: LUCENE-6923.patch

Simple patch, so permission can be given just to lucene-core.jar

I don't think returning the size of the class creates any security issue.

> Fix RamUsageEstimator's access to private fields
> ------------------------------------------------
>
>                 Key: LUCENE-6923
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6923
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>         Attachments: LUCENE-6923.patch
>
>
> many classes have in their clinit something like:
> {code}
> static final int BASE_SIZE = RamUsageEstimator.shallowSizeOf(...)
> {code}
> This does inspection of private fields to compute the size, but requires {{RuntimePermission("accessDeclaredMembers")}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org