It happens to see
Collections.<Object>asList(...)
method invocations in the code, but Eclipse seems do not understand this(with my configuration) and shows this as compilation error.
Is my Eclipse configuration wrong? Or this doesn’t work with Sun compiler (jdk 1.6.013)? What should I check / enable for thing like this?
If
Collectionsis meant to bejava.util.Collections, then Eclipse is correct as there is noCollections.asList().I think you meant
Arrays.asList().