JDK 12 RFR of JDK-6304578: (reflect) toGenericString fails to print bounds of type variables on generic methods
peter.levart at gmail.com
Wed Oct 17 22:07:05 UTC 2018
On 10/17/2018 09:16 PM, joe darcy wrote:
> PS In response to some off-list feedback, an updated webrev uses a
> stream-ier implementation:
I suggest further niceing:
- if you make typeVarBounds() static, you could use it in Stream.map()
as a method reference.
- in Class.java line 285, you could also use Type::getTypeName method
- in Class.java line 269, wouldn't the output be nicer if the delimiter
in joining collector was ", " instead of "," (with a space after comma)?
The same for Executable.
> On 10/11/2018 6:11 PM, joe darcy wrote:
>> Prompted by recent work on the toString implementations of
>> AnnotatedType objects
>> I rediscovered a long-standing limitation of toGenericString on Type
>> objects that can be addressed:
>> JDK-6304578: (reflect) toGenericString fails to print bounds of
>> type variables on generic methods
>> Please review the small CSR
>> and webrev:
More information about the core-libs-dev