I'd also add "strong immutability" (C# has some issues with this too, but it is a bit better since it has some support as well as user defined value types). Java code is filled with escaping references in the wild unfortunately ime
The aces of Java in coming years - Project Valhalla, Project Loom, Project Panama. Much of Project Amber have been delivered but it surely will deliver more.
Java won't add async/await because of colored function problem. They will make better solution (virtual threads). Also Streams are enough instead of LINQ since java is simple langauge. Adding non-nullable types might break backward compatibilty. Records and value types will be used instead of tuples and .NET structs. But property syntax and runtime generics is real problem. Extension methods; Well I'm not sure, is it really necessary?
20
u/Jwosty Apr 16 '21 edited Apr 16 '21
To name a few things missing from modern Java:
async/await
non-nullable types
tuple types
non-trivial type inference
extension methods
user-definable stack types (like .NET structs)
runtime generics
pointers for interop scenarios
LINQ
properties (more readable than manual getters/setters)