RFR: 8294982: Implementation of Classfile API [v13]

Adam Sotona asotona at openjdk.org
Wed Feb 8 07:33:53 UTC 2023


On Tue, 7 Feb 2023 15:20:15 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> Adam Sotona has updated the pull request incrementally with three additional commits since the last revision:
>> 
>>  - javadoc fixes
>>  - obsolete identifiers and unused imports cleanup
>>  - TypeAnnotation.TypePathComponent cleanup
>
> src/java.base/share/classes/jdk/internal/classfile/attribute/CharacterRangeInfo.java line 146:
> 
>> 144:      * @param flags the range flags
>> 145:      */
>> 146:     static CharacterRangeInfo of(int startPc,
> 
> I get that the encoding is as per JaCoCo specification. However, I also wonder if the API should provide better accessors and or factories to let clients just reason about line/columns numbers. Or, maybe, provide static helpers to do the encoding/decoding.

Any reference to an official specification of CharacterRangeInfo is appreciated.
Thanks.

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

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



More information about the build-dev mailing list