Bug 128077 - AST - instanceof - getLength returns wrong length
Summary: AST - instanceof - getLength returns wrong length
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Linux
: P3 blocker (vote)
Target Milestone: 3.2 M6   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-15 13:16 EST by Joachim Lusiardi CLA
Modified: 2006-03-27 15:24 EST (History)
1 user (show)

See Also:


Attachments
Proposed patch (1.18 KB, patch)
2006-02-17 16:22 EST, Olivier Thomann CLA
no flags Details | Diff
Regression test (2.30 KB, patch)
2006-02-17 16:23 EST, Olivier Thomann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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