[
https://issues.apache.org/jira/browse/LUCENE-10339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17465644#comment-17465644
]
Tomoko Uchida commented on LUCENE-10339:
----------------------------------------
I should have explained more clearly. I mean if the reflective access to the
class in jdk.management is enabled by default, the static block
RamUsageEstimator can't fail (on HotSpot VM) whether the "require" directive
exists or not - then it cannot be tested.
I agree that we can list all loaded modules, and check if it is expected.
{quote}In general I will start a PR and discussion to allow minimal logging as
this gets more and more important for users.
{quote}
I think it would be good to emit important warnings such as incorrect
system/jvm setup or deprecation for removal.
> Add require derective for jdk.management to core's module descriptor.
> ---------------------------------------------------------------------
>
> Key: LUCENE-10339
> URL: https://issues.apache.org/jira/browse/LUCENE-10339
> Project: Lucene - Core
> Issue Type: Sub-task
> Reporter: Tomoko Uchida
> Priority: Major
> Attachments: Screenshot from 2021-12-25 18-04-55.png, Screenshot from
> 2021-12-25 20-11-38.png
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> IntelliJ IDEA warns as follows in o.a.l.u.RamUsageEstimator.
> !Screenshot from 2021-12-25 18-04-55.png!
> !Screenshot from 2021-12-25 20-11-38.png!
> This means we would need "require" or "require static" directive(s) in core's
> module descriptor to make RamUsageEstimator correctly work.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]