Move the code to Java 5.0, and found that it is not compiled at all, it is due to Java 5.0 is not compatible due to the introduction of "model". Specifically, Collectes have a lot of Static functions into a model-specific version that cannot continue to work on the previous version of the container Collection class.
For example, the function sort (List List, Comparator Comp) can be used in previous versions to sort any List type containers, and it has become Sort after 5.0.
(List)
List, Comparator
c).
It's not very good, plus this common function can not maintain its compatibility, which is really a bit, or continue to use JDK1.4.