On Thu, 14 Nov 2024 14:19:58 GMT, Adam Sotona <asot...@openjdk.org> wrote:

> Class-File API usually expose names in a form of 
> `java.lang.classfile.constantpool.Utf8Entry`. Unfortunately 
> `java.lang.classfile.Attribute::attributeName` method was omitted during the 
> API review and it returns inflated `String` value of the name.
> 
> This patch changes return type of 
> `java.lang.classfile.Attribute::attributeName` from `String` to 
> `java.lang.classfile.constantpool.Utf8Entry`.
> 
> Please review.
> 
> Thanks,
> Adam

This pull request has now been integrated.

Changeset: ba393219
Author:    Adam Sotona <asot...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/ba39321902400e103cdce0b326d0005123b1d87e
Stats:     420 lines in 29 files changed: 375 ins; 5 del; 40 mod

8343881: java.lang.classfile.Attribute  attributeName() method should return 
Utf8Entry

Reviewed-by: liach

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

PR: https://git.openjdk.org/jdk/pull/22107

Reply via email to