JDK-6992705 : Include modifiers in Class.toGenericString()
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang:reflect
  • Affected Version: 6
  • Priority: P5
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2010-10-18
  • Updated: 2013-04-19
  • Resolved: 2013-04-09
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 8
8 b86Fixed
Related Reports
Relates :  
Description
A DESCRIPTION OF THE REQUEST :
Same as Constructor, Field and Method do already, prepend (Modifier.toString(modifiers) + " ") when modifiers != 0

JUSTIFICATION :
More complete toString() representation

Comments
Work in progress; will fix in conjunction with JDK-6298888.
03-04-2013

EVALUATION In principle a reasonable request, but would likely run afoul of behavioral compatability with changing Class.toString. However, a new Class.toGenericString method might be able to print the modifiers too.
19-10-2010