RFR: 8177650: JShell tool: packages in classpath don't appear in completions
Christian Stein
cstein at openjdk.org
Mon Jul 7 12:38:41 UTC 2025
On Fri, 4 Jul 2025 17:32:38 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
> JShell provides the code completion feature, where it suggests possible follow ups for a given snippet prefix. To allow completion for packages, JShell uses a background task to go through known classes and create an index for them.
>
> There are two problems with this background task:
> - the classpath is read from the JShell's FileManager, but the FileManager may not be configured with the compile options yet, so the classpath may not be filled yet,
> - the module path is not included in the list of paths to paths to search
>
> This PR proposes to:
> - use FileManager configured by passing the compile options through javac
> - include the module path in the search path
Marked as reviewed by cstein (Committer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/26137#pullrequestreview-2993653306
More information about the kulla-dev
mailing list