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.

Bug 152599

Summary: [javahints] ".equals() on incompatible types" wrong on Properties vs. Map
Product: contrib Reporter: Jesse Glick <jglick>
Component: CodeAssignee: issues@contrib <issues>
Status: NEW ---    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jesse Glick 2008-11-07 01:47:42 UTC
Properties props = ...;
Map<String,String> map = ...;
props.equals(map);

is perfectly legal AFAIK - you are checking if the maps have the same contents. But the IDE issues a warning.