Integrated: 8374293: Jshell throws an error and crashes when using keyword Public

Lei Zhu duke at openjdk.org
Sat Jan 24 14:23:07 UTC 2026


On Fri, 2 Jan 2026 13:03:28 GMT, Lei Zhu <duke at openjdk.org> wrote:

> `jdk.jshell.SourceCodeAnalysis#highlights` should not return overlapping highlights, so use `TreeSet` for deduplication and sorting.

This pull request has now been integrated.

Changeset: a40dbce4
Author:    Lei Zhu <korov9.c at gmail.com>
Committer: Chen Liang <liach at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/a40dbce495db9959624b72ff619e2e7ae7f7fb8b
Stats:     21 lines in 2 files changed: 8 ins; 8 del; 5 mod

8374293: Jshell throws an error and crashes when using keyword Public

Reviewed-by: jlahoda

-------------

PR: https://git.openjdk.org/jdk/pull/29018


More information about the compiler-dev mailing list