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.
Provided hint on following piece of code: public void processMap(Map map1, Map map2) { for (Object keyEntry : map1.entrySet()) { Map.Entry<String, Object> mapEntry = (Map.Entry<String, Object>) keyEntry; map2.get(mapEntry.getKey()); // do more stuff } } do the change to functional form public void processMap(Map map1, Map map2) { map1.entrySet().stream().map((keyEntry) -> (Map.Entry<String, Object>) keyEntry) .forEachOrdered(( mapEntry) -> { map2.get(mapEntry.getKey()); // do more stuff }); } which is not compilable due lost mapEntry.getKey() return type. Issue happens only when original map1 and map2 are generic-less.