RE : [JShell] SourceCodeAnalysis.CompletionInfo documentation is really vague

2023-11-08 Thread tom L
e in the future don’t spend hours trying to figure out why there is a null in the code or why remaining = source. Regards, Tom. De : core-libs-dev de la part de tom L Envoyé : Monday, October 23, 2023 8:26:11 PM À : core-libs-dev@openjdk.org Objet : [JShell] SourceCodeAnalysis.Compl

[JShell] SourceCodeAnalysis.CompletionInfo#source() can be null but the doc doesn't say anything about it

2023-10-23 Thread tom L
Hello, I have a problem with JShell, I don’t know if it should go in this mailing list. On JDK 21 (should be the same for any JDK version 9+), Windows 11, with this following code : ``` var jshell = JShell.create() ; jshell.sourceCodeAnalysis().analyzeCompletion("println(").source() // null ``` th