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.
This fails with both 8.0.2 and todays daily build Given the following: package javaapplication1; import java.util.Map; public class GenericizeHint { static class Item<K> { } void foo(Map<Integer, Item> m) { Item item; m.forEach((k,v) -> System.err.println("")); } } and the hint (it adds the "<?>") $modifiers$ javaapplication1.GenericizeHint.Item $name = $init$; => $modifiers$ javaapplication1.GenericizeHint.Item<?> $name = $init$; ;; it matches m.forEach((k,v) -> System.err.println("")); and rewrites it as m.forEach((k, Item<?> v) -> System.err.println("")); which is a syntax error The line should not match (or at least the match should be filtered out before it gets to the user)