RFR: 8323698: Class use page does not include extends/implements type arguments [v4]

Pavel Rappo prappo at openjdk.org
Tue Feb 20 22:03:55 UTC 2024


On Tue, 20 Feb 2024 21:04:34 GMT, Pavel Rappo <prappo at 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


More information about the javadoc-dev mailing list