0
我正在尝试关注these steps。无法构建实际的Intellij IDEA社区版
而且我的 “做项目” 一步一个问题:
invalid inferred types for T,A; inferred type does not conform to declared bound(s)
inferred: java.lang.Object
bound(s): T
在( “回归中的addAll(newHashSet(项目));”)
@NotNull
public static <T> Set<T> set(@NotNull T ... items) {
return addAll(newHashSet(items));
}
@NotNull
public static <T, A extends T, C extends Collection<T>> C addAll(@NotNull C collection, @NotNull A... elements) {
//noinspection ManualArrayToCollectionCopy
for (T element : elements) {
collection.add(element);
}
return collection;
}
这似乎有些奇怪 - 源代码是实际的,我认为,这可能是项目配置中的一个问题。 任何想法?
openjdk-6。尝试另一个jdk包似乎是个好主意。 –
我不会使用openjdk。 :)在我看来,这似乎是一个问题。 –
是的,这是jdk问题。 OpenJDK-7工作正常。 –