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 52725 Details for
Bug 161617
[ast rewrite] replacing InstanceofExpression.LEFT_OPERAND_PROPERTY should ensure whitespace
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Fix
161617_patch.txt (text/plain), 1.44 KB, created by
Markus Keller
on 2006-10-26 05:34:32 EDT
(
hide
)
Description:
Fix
Filename:
MIME Type:
Creator:
Markus Keller
Created:
2006-10-26 05:34:32 EDT
Size:
1.44 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java,v >retrieving revision 1.47 >diff -u -r1.47 ASTRewriteAnalyzer.java >--- dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java 31 Aug 2006 15:42:44 -0000 1.47 >+++ dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java 26 Oct 2006 09:37:36 -0000 >@@ -2236,6 +2236,20 @@ > return doVisitUnchangedChildren(node); > } > >+ try { >+ // https://bugs.eclipse.org/bugs/show_bug.cgi?id=110963 >+ if (getChangeKind(node, InstanceofExpression.LEFT_OPERAND_PROPERTY) == RewriteEvent.REPLACED) { >+ int leftOperandEnd= getExtendedEnd((ASTNode) getOriginalValue(node, InstanceofExpression.LEFT_OPERAND_PROPERTY)); >+ int offset= getScanner().getNextStartOffset(leftOperandEnd, true); // instanceof >+ >+ if (offset == leftOperandEnd) { >+ doTextInsert(offset, String.valueOf(' '), getEditGroup(node, InstanceofExpression.LEFT_OPERAND_PROPERTY)); >+ } >+ } >+ } catch (CoreException e) { >+ handleException(e); >+ } >+ > rewriteRequiredNode(node, InstanceofExpression.LEFT_OPERAND_PROPERTY); > rewriteRequiredNode(node, InstanceofExpression.RIGHT_OPERAND_PROPERTY); > return false;
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 161617
: 52725