Community
Participate
Working Groups
The original code in the diff builds and runs fine, but Sun's javac doesn't like it: - @SuppressWarnings("unchecked") - private static <T> T getItem() - { - return (T) ITEM.get(); + private static <T> T getItem(Class<T> klass) { + return klass.cast(ITEM.get()); } Sun's compiler error produced occurs where the method is called: type parameters of <T>T cannot be determined; no unique maximal instance exists for type variable T with upper bounds T,java.lang.Object
Please provide more context. What is the Eclipse build ID ? What are is the complete testcase ? What diff builds are you talking about ? Please reopen once all these questions are answered.
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.