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 - [javahints] ".equals() on incompatible types" wrong on Properties vs. Map
Summary: [javahints] ".equals() on incompatible types" wrong on Properties vs. Map
Status: NEW
Alias: None
Product: contrib
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@contrib
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-07 01:47 UTC by Jesse Glick
Modified: 2013-09-02 14:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.