JDK-8159027 : JShell API: SourceCodeAnalysis.Suggestion has constructor, ...
  • Type: Bug
  • Component: tools
  • Sub-Component: jshell
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2016-06-08
  • Updated: 2017-05-17
  • Resolved: 2016-08-15
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.

To download the current JDK release, click here.
JDK 9
9 b133Fixed
Related Reports
Relates :  
Description
The constructor is actually used (by the tool).  Suggestion should instead be an interface.

SourceCodeAnalysis.CompletionInfo should maybe also be an interface.  And in any event, unitEndPos() is an anachronistic name for a method that is probably not needed.  Fix the name (simply endPos) or remove it.