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 239560 - Dereferencing possible null pointer false positive in asserts
Summary: Dereferencing possible null pointer false positive in asserts
Status: RESOLVED DUPLICATE of bug 236940
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-17 14:52 UTC by mklaehn
Modified: 2013-12-17 15:03 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 mklaehn 2013-12-17 14:52:41 UTC
if there is a construct like the following

Map<Object, Object> m = new Map<>();
Object old = m.put("new", new Object());
assert null == old : "replaced old value of " + old.toString();

The mentioned hint is shown for old.toString()

###############################################################
Product Version: NetBeans IDE Dev (Build 201312160002)
Updates: Updates available
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b62
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b120
System: Windows 7 version 6.1 running on amd64; Cp1252; en (nb)
User directory: D:\netbeans-ide\201312160002\dev_user
Cache directory: W:\dev_cache
Comment 1 Jiri Prox 2013-12-17 15:03:22 UTC

*** This bug has been marked as a duplicate of bug 236940 ***