JDK-8139829 : JShell API: No use of fields to return information from public types
  • Type: Bug
  • Component: tools
  • Sub-Component: jshell
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2015-10-19
  • Updated: 2017-05-17
  • Resolved: 2016-06-08
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 b123Fixed
Related Reports
Relates :  
Relates :  
Description
* No use of fields to return information from public types, including enums. Using a field is over-committing to an implementation detail; use a method instead. 

Enum Snippet.Status: isActive, isDefined
Enum Snippet.Kind: isPersistent
Enum SourceCodeAnalysis.Completeness: isComplete
Class SourceCodeAnalysis.CompletionInfo: all fields
Class SourceCodeAnalysis.Suggestion: all fields