On Sat, 22 Nov 2025 23:00:44 GMT, Piotr Tarsa <[email protected]> wrote:
> Could the duplication be reasonably reduced by using code templates like the > ones in Vector API > https://github.com/search?q=repo%3Aopenjdk%2Fjdk+path%3A*.java.template+path%3Asrc%2Fjdk.incubator.vector&type=code > ? Hi [tarsa](https://github.com/tarsa), Thank you for your advice, it should really help to easier support and modify the sorting class. Could you please point to the documentation related to templates? For example, if I use $type$ in code, how can I specify that $type$ is one of int, long, float, double only? How can I generate sources from the template? ------------- PR Comment: https://git.openjdk.org/jdk/pull/27411#issuecomment-3568335648
