Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 34947 Details for
Bug 128077
AST - instanceof - getLength returns wrong length
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed patch
patch_128077.txt (text/plain), 1.18 KB, created by
Olivier Thomann
on 2006-02-17 16:22:44 EST
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2006-02-17 16:22:44 EST
Size:
1.18 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: dom/org/eclipse/jdt/core/dom/ASTConverter.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java,v >retrieving revision 1.231 >diff -u -r1.231 ASTConverter.java >--- dom/org/eclipse/jdt/core/dom/ASTConverter.java 17 Feb 2006 16:09:56 -0000 1.231 >+++ dom/org/eclipse/jdt/core/dom/ASTConverter.java 17 Feb 2006 21:15:40 -0000 >@@ -1781,9 +1781,11 @@ > } > Expression leftExpression = convert(expression.expression); > instanceOfExpression.setLeftOperand(leftExpression); >- instanceOfExpression.setRightOperand(convertType(expression.type)); >+ final Type convertType = convertType(expression.type); >+ instanceOfExpression.setRightOperand(convertType); > int startPosition = leftExpression.getStartPosition(); >- instanceOfExpression.setSourceRange(startPosition, expression.sourceEnd - startPosition + 1); >+ int sourceEnd = convertType.getStartPosition() + convertType.getLength() - 1; >+ instanceOfExpression.setSourceRange(startPosition, sourceEnd - startPosition + 1); > return instanceOfExpression; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 128077
: 34947 |
34948