Those Gotland class submarines are another tier entirely compared to other submarines, so I don't think it is fair to dismis this entirely as having been operational for decades.
The first Gotlands were launched in 1995, and I'm fairly certain that German-made diesel subs (Type 209s) were being retrofitted with Stirling engines well before the Gotlands begin construction in 1992.