6304578: (reflect) toGenericString fails to print bounds of type variables on generic methods

Reviewed-by: vromero, plevart, briangoetz, mcimadamore
This commit is contained in:
Joe Darcy 2018-11-01 20:37:45 -07:00
parent 72bfdd96f1
commit 7a350b9474
7 changed files with 88 additions and 49 deletions

View file

@ -436,10 +436,11 @@ public final class Method extends Executable {
}
/**
* Returns a string describing this {@code Method}, including
* type parameters. The string is formatted as the method access
* Returns a string describing this {@code Method}, including type
* parameters. The string is formatted as the method access
* modifiers, if any, followed by an angle-bracketed
* comma-separated list of the method's type parameters, if any,
* including informative bounds of the type parameters, if any,
* followed by the method's generic return type, followed by a
* space, followed by the class declaring the method, followed by
* a period, followed by the method name, followed by a