Something like C++ references, for example. I don't mind the particular approach, but I would love to see a solution.
Why?
Generics where said to solve ClassCastException. But ClassCastExceptions aren't a problem for me. NullPointerExceptions are a plague however: There's hardly a day without a NullPointerException in either foreign code or my own code. If some means to extinct this issue would exist, then probably 80% of my trouble would be gone.
Regards,
Christian |