- 1
- 2
- 3
- 4
- 5
- 6
This would raise the true nightmare. A type variable is a different beast than the actual type of a concrete instance.
A type variable could resolve to a, e.g. ? extends Comparator<? super Number> to name one (rather simple) example.
Providing the necessary meta information would imply that not only object allocation becomes much more expensive,
every single method invocation could impose these additional cost, to an even bigger extend as we are now not only
talking about the combination of generic classes with actual classes, but also every possible wildcarded combination,
even of nested generic types.
я не про то что они хранят информацию в рантайме, а то что даже генерация типа на каждый чих в общем-то не является чем-то плохим
так всегда было и так всегда будет, такова жизнь
с подключением
Всё ненужно, чего нет"