This is a bit harsh. Design of an airplane (esp. combat one) is a decades long process. DoD designed specifications in an era when we have oohed and aahed over Windows 95. F35 has been first flown in an era when smartphone meant either Nokia Communicator or some barely functioning, overcomplicated (from today's perspective) Windows contraption and tablet meant 2kg hulk with a stylus and Windows XP Tablet edition.
I don't think anyone could have predicted the current state of technology and security challenges. However, from conflicts in the past they knew that not investing is even more callous thing. Still, they have two decades of experience of how not to do it, so maybe this will be useful in designing better development frameworks and processes. So hopefully not everything is wasted.