JShell permits to create transient snippets using SourceCodeAnalysis.sourceToSnippet, which can be used to work with the snippets in external clients, as the user types.
One feature the external clients could use is to provide error reporting to the user, as they type. But, currently, there's no way to get a sensible list of errors for these transient snippets out from JShell.
One feature the external clients could use is to provide error reporting to the user, as they type. But, currently, there's no way to get a sensible list of errors for these transient snippets out from JShell.
- csr for
-
JDK-8341200 Permit access to diagnostics for transient snippets
-
- Closed
-
- links to
-
Commit(master) openjdk/jdk/5ca6698b
-
Review(master) openjdk/jdk/21261