Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 318602

Summary: [code assist] 'instanceof' keyword not proposed in boolean variable initializer
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: Ayushman Jain <amj87.iitr>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: srikanth_sankaran
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Markus Keller CLA 2010-07-01 10:16:23 EDT
I20100629-0800

Content Assist should propose the 'instanceof' keyword in boolean variable initializer, e.g. after 'ins' here:

public class Try {
    public void foo(Object arg) {
        boolean a= arg ins
    }
    
    public void bar(Object arg) {
        boolean b= arg == null || arg ins;
    }
}
Comment 1 Srikanth Sankaran CLA 2010-07-02 00:35:29 EDT
Ayush, please take a look, thanks.
Comment 2 Ayushman Jain CLA 2010-07-02 02:50:11 EDT
Reproduced. I'll look into it.
Comment 3 Eclipse Genie CLA 2020-04-28 00:55:35 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.