On Tue, 20 Feb 2024 21:04:34 GMT, Pavel Rappo <pra...@openjdk.org> wrote:
> It does not feel generic enough. (No pun intended.) What about using a class > or interface as a bound as in this example? > > ``` > interface MyList<T extends One & Two<Three>> extends java.util.List<T> > ``` I checked, and your patch seems to automatically work for the case that I suggested. Good! (Although, a test would be nice too.) However, please take into account the following when refining label text (standard.properties): * interfaces can also be generic, * an interface extends other interfaces, not implements them, * there's probably a difference between a class or interface being used as a type argument (i.e. `MyList<One>`) and it being used as a bound (i.e. `MyList<T extends One>`). ------------- PR Comment: https://git.openjdk.org/jdk/pull/17414#issuecomment-1955191775