[
https://issues.apache.org/jira/browse/LUCENE-6129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14255952#comment-14255952
]
Dawid Weiss commented on LUCENE-6129:
-------------------------------------
Btw. this is something that fits ideally with aspectj... You just create a
pointcut on any constructor of a given class, add a field to it, and a before
pointcut on any public method... It's really a pity it's still a niche
technology.
> Assert that terms enums, docs enums and doc values are not leaked across
> threads
> --------------------------------------------------------------------------------
>
> Key: LUCENE-6129
> URL: https://issues.apache.org/jira/browse/LUCENE-6129
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Adrien Grand
> Assignee: Adrien Grand
> Priority: Minor
> Attachments: LUCENE-6129.patch
>
>
> Terms enums, docs enums and doc values should only be consumed in the thread
> that they have been acquired in. We could add checks to Asserting* to make
> sure they never leak?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]