This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 162494 [details] Sample Project demonstrating the issue. I get Editor Error hints on the following code, when using Java 8 as source format (Java 6 and 7 are Ok): public class Actions { public interface Action<T> { void execute(T t); } public static <T> Action<T> composite(Iterable<? extends Action<? super T>> actions) { return null; } public static <T> Action<T> composite(Action<? super T>... actions) { return composite(Arrays.asList(actions)); } } Actually this is an excerpt from Gradle base-services sub-project. On contrary there is a CollectionUtils class which only marked well when Java 8 is the source format. It's maybe related to: #222487, though I think that's unlikely
Created attachment 162915 [details] Picture demonstrating the issue using Language level Java 8
I'm not sure that this is an issue with the Hints component. The compilation error can be fixed by a small change: public static <T> Action<T> composite(Action<? super T>... actions) { return Actions.<T>composite(Arrays.asList(actions)); }