RFR: 8338700: AttributeMapper type parameter should be bounded by Attribute

ExE Boss duke at openjdk.org
Thu Aug 22 08:37:04 UTC 2024


On Wed, 21 Aug 2024 23:20:38 GMT, Chen Liang <liach at openjdk.org> wrote:

> A minor oversight in AttributeMapper type parameter bounds, that it should be bounded by Attribute. Only real impact is in BoundAttribute.readAttributes where a cast is now omitted, as other sites of access like Attribute::attributeMapper has already bounded the returned type argument.

Note that this also affects binary compatibility as the erased type of `A` is now `java.lang.classfile.Attribute` instead of `java.lang.Object`.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/20668#issuecomment-2304091808


More information about the core-libs-dev mailing list