On Mon, 4 May 2026 14:07:26 GMT, Per Minborg <[email protected]> wrote:
>> Implement JEP 531: Lazy Constants (Third Preview) >> >> This PR replaces _draft_ https://github.com/openjdk/jdk/pull/29507 >> >> - [x] I confirm that I make this contribution in accordance with the >> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). > > Per Minborg has updated the pull request with a new target base due to a > merge or a rebase. The pull request now contains 69 commits: > > - Reshuffle examples and fix typo > - Merge branch 'master' into > implement-lazy-constants-third-prewiew-exceptions > - Merge branch 'openjdk:master' into master > - Merge master > - Merge branch 'openjdk:master' into master > - Add exampels and reinforce testing > - Restrict method and class visitbility > - Clean up and add IR tests > - Address additional comments > - Merge branch 'master' into > implement-lazy-constants-third-prewiew-exceptions > - ... and 59 more: https://git.openjdk.org/jdk/compare/3c69c969...bdf79df1 src/java.base/share/classes/java/util/LazyCollections.java line 426: > 424: private static int hash(Object obj) { > 425: return (obj == null) ? 0 : obj.hashCode(); > 426: } Isn't this exactly what `Objects.hashCode(Object o)` does? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/30194#discussion_r3182581129
