JDK-8139833 : JShell API: disallow null parameter on Builder tempVariableNameGenerator() and idGenerator(),
Type:Bug
Component:tools
Sub-Component:jshell
Affected Version:9
Priority:P4
Status:Resolved
Resolution:Not an Issue
Submitted:2015-10-19
Updated:2016-03-29
Resolved:2016-03-29
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
JShell.Builder
Is it necessary for the methods to accept null arguments rather than throwing NPE?
Comments
This issue has already been addressed ---
* The default behavior (if this is not set or <code>generator</code>
* is null) is to generate the name as a sequential number with a
* prefixing dollar sign ("$").
---
* The default behavior (if this is not set or <code>generator</code>
* is null) is to generate the id as the integer converted to a string.