Integrated: 8296789: <TAB>-completion in jshell fails to expose synthetic bridge methods
Adam Sotona
asotona at openjdk.org
Wed Jan 11 09:24:19 UTC 2023
On Mon, 2 Jan 2023 16:57:54 GMT, Adam Sotona <asotona at openjdk.org> wrote:
> Jshell does not propose completion for members declared in inaccessible parent classes (for example AbstractStringBuilder).
>
> This patch fixes the completion in SourceCodeAnalysisImpl using MethodSymbols and VarSymbols clones with altered enclosing elements. For documentation purpose (print of the enclosing classes) the original enclosing element is restored.
>
> The patch also includes new CompletionSuggestionTest::testPerentMembers
>
> Please review.
>
> Thanks,
> Adam
This pull request has now been integrated.
Changeset: 257f667a
Author: Adam Sotona <asotona at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/257f667afb3dfaefb9a5a6916472066257ca0788
Stats: 24 lines in 2 files changed: 19 ins; 0 del; 5 mod
8296789: <TAB>-completion in jshell fails to expose synthetic bridge methods
Reviewed-by: jlahoda
-------------
PR: https://git.openjdk.org/jdk/pull/11814
More information about the kulla-dev
mailing list