byte-buddy icon indicating copy to clipboard operation
byte-buddy copied to clipboard

Minor: documentation for TypePool#describe(String) is incorrect

Open ljnelson opened this issue 2 years ago • 1 comments

The javadoc says:

The name is to be written as when calling Object.toString() on a loaded Class.

But calling toString() on, for example, Object.class yields class java.lang.Object.

I think instead you must mean to say something like:

The supplied name must be equal to the result of an invocation of the Class#getName() method on some Class object.

ljnelson avatar May 31 '23 21:05 ljnelson

Good catch, thanks!

raphw avatar Jun 01 '23 21:06 raphw