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 27145 Details for
Bug 109535
[DOM] Wrong infix expression when '-' is used within string literals
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_109535.txt (text/plain), 1.65 KB, created by
Olivier Thomann
on 2005-09-14 19:32:54 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-09-14 19:32:54 EDT
Size:
1.65 KB
patch
obsolete
>Index: dom/org/eclipse/jdt/core/dom/ASTConverter.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java,v >retrieving revision 1.218 >diff -u -r1.218 ASTConverter.java >--- dom/org/eclipse/jdt/core/dom/ASTConverter.java 13 Sep 2005 17:40:19 -0000 1.218 >+++ dom/org/eclipse/jdt/core/dom/ASTConverter.java 14 Sep 2005 23:30:18 -0000 >@@ -33,6 +33,7 @@ > import org.eclipse.jdt.internal.compiler.ast.JavadocMessageSend; > import org.eclipse.jdt.internal.compiler.ast.LocalDeclaration; > import org.eclipse.jdt.internal.compiler.ast.MessageSend; >+import org.eclipse.jdt.internal.compiler.ast.OperatorIds; > import org.eclipse.jdt.internal.compiler.ast.ParameterizedQualifiedTypeReference; > import org.eclipse.jdt.internal.compiler.ast.ParameterizedSingleTypeReference; > import org.eclipse.jdt.internal.compiler.ast.QualifiedAllocationExpression; >@@ -1082,7 +1083,8 @@ > infixExpression.setSourceRange(startPosition, expression.sourceEnd - startPosition + 1); > return infixExpression; > } else if (expression.left instanceof StringLiteralConcatenation >- && ((expression.left.bits & org.eclipse.jdt.internal.compiler.ast.ASTNode.ParenthesizedMASK) == 0)) { >+ && ((expression.left.bits & org.eclipse.jdt.internal.compiler.ast.ASTNode.ParenthesizedMASK) == 0) >+ && (OperatorIds.PLUS == expressionOperatorID)) { > StringLiteralConcatenation literal = (StringLiteralConcatenation) expression.left; > final org.eclipse.jdt.internal.compiler.ast.Expression[] stringLiterals = literal.literals; > infixExpression.setLeftOperand(convert(stringLiterals[0]));
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 109535
: 27145 |
27146