Bug 111026 - It Lies - "null is an instance of Object"
Summary: It Lies - "null is an instance of Object"
Status: RESOLVED DUPLICATE of bug 101208
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-28 23:24 EDT by ryenus ' CLA
Modified: 2005-09-29 04:38 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ryenus ' CLA 2005-09-28 23:24:24 EDT
Hey,

Eclipse lies!

I wrote a simple statement: 
    System.out.println(null instanceof String);

the output is surely "false", but the problem is the warning tip, it says:
    the expression of type null is already an instance of type String.

O.M.G.
Comment 1 Philipe Mulet CLA 2005-09-29 04:38:52 EDT
Yes, this is a bug which got addressed already. Fix is available in Eclipse 3.1.1.

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