Documentation bug in Class#isAssignableFrom(Class)
fweimer at bfk.de
Wed Oct 13 08:38:12 PDT 2010
I believe the specification in OpenJDK 6 needs an update.
It references section 5.1.4 in the second edition, and
this section is gone from the third edition.
Superficially, it may appear that 5.1.5 is the correct replacement,
but this is not the case because widening reference conversions in
that version of the text apply to "any type", including primitive
types. (The generic twist to the subtyping relation should not matter
here because Class objects always refer to erased types.)
Therefore, I suggest that someone from Oracle copies (and thus
relicenses) the second edition text into the Class documentation.
This should adequately match the behavior of the method.
Florian Weimer <fweimer at bfk.de>
BFK edv-consulting GmbH http://www.bfk.de/
Kriegsstraße 100 tel: +49-721-96201-1
D-76133 Karlsruhe fax: +49-721-96201-99
More information about the core-libs-dev