My apologies for a silly question; just cannot come up with a proper term to search for. Trying to compile a third-party sources, I've bumped into the following compilation error:
/Users/alf/Work/concise.svn/ExtendedSet/src/it/uniroma3/mat/extendedset/transactions/PairSet.java:[230,28] inconvertible types
found : java.util.Collection<capture#741 of ? extends it.uniroma3.mat.extendedset.transactions.Pair<XT,XI>>
required: it.uniroma3.mat.extendedset.transactions.PairSet<XT,XI>
I guess I know what is the problem—but what does capture#741
mean? Each time I'm trying to recompile, the number after #
changes—not sure if it helps in any way.
Update:
The code in question was,
public static <XT, XI> PairSet<XT, XI> newPairSet(Collection<? extends Pair<XT, XI>> ps, boolean compressed) {
if (ps instanceof PairSet)
return (PairSet<XT, XI>) ps;
and the fix suggested in javac error: inconvertible types with generics? works just fine—but what does capture#741
mean?