RFR: 8318324: Drop redundant default methods from FFM API [v2]

Jorn Vernee jvernee at openjdk.org
Wed Oct 18 14:12:58 UTC 2023


On Wed, 18 Oct 2023 13:53:35 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> This PR moves turns default methods in `MemorySegment` and `MemoryLayout` into ordinary abstract methods.
>> These interfaces cannot be subclasses by developers (they are sealed), so there is no reson for having default methods there. Also, default methods can have some detrimental effects, as they cause the interfaces to be initialized more eagerly.
>
> Maurizio Cimadamore has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Address review comments

Marked as reviewed by jvernee (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/16224#pullrequestreview-1685198777


More information about the core-libs-dev mailing list