RFR 8188072: JShell: NPE in SourceCodeAnalysis.completionSuggestions()
Jan Lahoda
jan.lahoda at oracle.com
Thu Nov 2 13:16:19 UTC 2017
+1
Jan
On 2.11.2017 05:22, Robert Field wrote:
> JDK-8190510 has been filed to diagnose and address the underlying cause
> of this error.
>
> The more general and important fix is to assure that failures of this
> class do not crash the jshell tool -- so this addresses that.
>
> Catching this in SourceCodeAnalysisImpl.completionSuggestions() causes
> it move on to the same failure in SourceCodeAnalysisImpl.documentation().
>
> Both now catch all Throwables, reporting the exception when debugging is
> on ("/debug", see JDK-8190510) and returning the empty list (the no
> result value).
>
> Bug:
>
> https://bugs.openjdk.java.net/browse/JDK-8188072
>
> Webrev:
>
> http://cr.openjdk.java.net/~rfield/8188072v0.webrev/
>
> -Robert
>
More information about the kulla-dev
mailing list