On Mon, 14 Sep 2026 18:57:41 GMT, Jorn Vernee <[email protected]> wrote:

> Consider also that additional super interfaces can bring in additional 
> inherited default methods, thereby changing the set of public methods of a 
> type.

That can also happen when new default methods are introduced to existing 
platform interfaces, such as the addition of 
[`java.lang.CharSequence​::isEmpty()`] in **JDK 15**, or 
[`java.util.List​::reversed()`] in **JDK 21**.

[`java.lang.CharSequence​::isEmpty()`]: 
https://docs.oracle.com/en/java/javase/27/docs/api/java.base/java/lang/CharSequence.html#isEmpty%28%29
[`java.util.List​::reversed()`]: 
https://docs.oracle.com/en/java/javase/27/docs/api/java.base/java/util/List.html#reversed%28%29

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

PR Comment: https://git.openjdk.org/jdk/pull/32787#issuecomment-6882535911

Reply via email to