I'm using Guava-05-snapshot, with Sun's JDK 1.6 The code blows up executing this snippet:
List<String> badpasswords = Lists.newArrayList( Password.badWords);
Collections.sort(badpasswords);
ImmutableList<String> tmp = ImmutableList.copyOf(badpasswords);
Specifically on the ImmutableList.copyOf() call. This code has worked for months, using the old Google-Collections code.
java.lang.NoSuchMethodError: com.google.common.collect.ImmutableList.copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableList;
The Password.badWords
is an ImmutableSet<String>
and the creation of the writable array and the sort work perfectly. But attempts to convert the Array into an ImmutableList
fail.