Integer extends Number
[…] extends Number
So why can’t I do this?
numberVariable.parseAsSubClass(string)
Instead I have to do this:
Something<? extends Number> variable;
Class<? extends Number> numberType;
if(numberType == Integer.class)
etc…
Good God at the horrible design.
Will Sun ever fix this?