Bug 106048 - [compiler] warning on implementation of equals not handling null
Summary: [compiler] warning on implementation of equals not handling null
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-04 10:13 EDT by Adam Kiezun CLA
Modified: 2008-08-22 11:14 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Kiezun CLA 2005-08-04 10:13:20 EDT
3.1
the Object.equals contract is clear in that can happed as null as parameter and
'false' must be returned then.

A compiler check for both would be good. Or at least checking that a null
argument will not cause an immediate (e.g. in same method, on a normal path) NPE.