Unpopular answer: anything that's about to become legacy. See COBOL programmers.
Maybe if you have software project management skills (complex migrations from legacy tech X to modern Y), these might be transferable skills.
I worked an internship about 4 years ago in a state government IT role, they were using JSP and Websphere just as Java 8 was being released.
With that said- I don't think Java is dying any time soon, it's too good at articulating business logic for us to just toss it by the wayside. I'm thinking more along the lines of "hot Java framework from 5 years ago". If Spring starts to head towards legacy status, I'd expect that to become the hot "legacy job".