Bug 16120 - SelectionParser build wrong AST for instanceof statement
Summary: SelectionParser build wrong AST for instanceof statement
Status: VERIFIED DUPLICATE of bug 14468
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 F2   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-16 05:29 EDT by David Audel CLA
Modified: 2002-06-03 14:25 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 David Audel CLA 2002-05-16 05:29:21 EDT
public class X {
  void foo(Object o){
    if(o instanceof Y){}
  }
}

if you select 'Y' then the computed AST is :
public class X {
  void foo(Object o) {
  }
}
this AST does not contain a selection node.
Comment 1 David Audel CLA 2002-05-27 11:16:43 EDT

*** This bug has been marked as a duplicate of 14468 ***
Comment 2 Olivier Thomann CLA 2002-06-03 14:25:07 EDT
Verified as this is a duplicate of a verified bug.