I don’t think templates are wanted, but with the coming of unification of primitive and reference types, Java could get a huge speedup in performance.
It will allow (almost) direct control over data layout. At least make it so that it is cache/prefetch/SIMD friendly.
Here is the JEP: https://openjdk.java.net/jeps/401