Bug 128077

Summary: AST - instanceof - getLength returns wrong length
Product: [Eclipse Project] JDT Reporter: Joachim Lusiardi <shing19m>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: blocker    
Priority: P3 CC: shing19m
Version: 3.2   
Target Milestone: 3.2 M6   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Proposed patch
none
Regression test none

Description Joachim Lusiardi CLA 2006-02-15 13:16:27 EST
The following code fragment is an example of the bug:
r instanceof Future<?>
The problem is:
the getLength method of a InstanceofExpression returns 19 instead of (what i would consider correct) 22.
In the following fragments every thing works:
r instanceof Future
Future<?> 
Both are recognized correctly by the creating classes for the AST.
There fore i think the bug must be around the instanceof code.
Comment 1 Olivier Thomann CLA 2006-02-17 16:22:44 EST
Created attachment 34947 [details]
Proposed patch
Comment 2 Olivier Thomann CLA 2006-02-17 16:23:26 EST
Created attachment 34948 [details]
Regression test
Comment 3 Olivier Thomann CLA 2006-02-17 18:24:22 EST
Fixed and released in HEAD.
Regression test added in org.eclipse.jdt.core.tests.dom.ASTConverter15Test.test0210
Comment 4 Jerome Lanneluc CLA 2006-03-27 15:24:10 EST
Verified for 3.2 M6 using build I20060327-0010