[ https://issues.apache.org/jira/browse/LUCENE-8309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16474053#comment-16474053 ]
Michael McCandless commented on LUCENE-8309: -------------------------------------------- +1, but maybe add a class javadoc to {{FixedBits}}? > Don't use mutable FixedBitSets as live docs Bits > ------------------------------------------------ > > Key: LUCENE-8309 > URL: https://issues.apache.org/jira/browse/LUCENE-8309 > Project: Lucene - Core > Issue Type: Improvement > Reporter: Adrien Grand > Priority: Minor > Attachments: LUCENE-8309.patch > > > Simon mentioned this idea first: it would be nice to not expose mutable > fixedbitsets as live docs, which makes it easy for consumers of live docs to > resurrect some documents by casting to a FixedBitSet and potentially corrupt > the index. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org