On Fri, 24 Apr 2026 09:02:04 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 incrementally with one additional > commit since the last revision: > > Change the way throwing toString is handled src/java.base/share/classes/java/util/LazyCollections.java line 712: > 710: return (cause == null) > 711: ? new NoSuchElementException(message) > 712: : new NoSuchElementException(message, cause); @minborg If cause is null then the results should be indistinguishable from the previous code to do the below: Suggestion: return new NoSuchElementException(message, cause); ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/30194#discussion_r3146418350
