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 76783 Details for
Bug 200724
[compiler] Assignment with no effect undetected
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_200724.txt (text/plain), 1.23 KB, created by
Olivier Thomann
on 2007-08-23 11:47:55 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2007-08-23 11:47:55 EDT
Size:
1.23 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/ast/Assignment.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/Assignment.java,v >retrieving revision 1.78 >diff -u -r1.78 Assignment.java >--- compiler/org/eclipse/jdt/internal/compiler/ast/Assignment.java 6 Mar 2007 02:38:48 -0000 1.78 >+++ compiler/org/eclipse/jdt/internal/compiler/ast/Assignment.java 23 Aug 2007 15:49:01 -0000 >@@ -118,6 +118,13 @@ > // i = i++; // eq to ++i; > return getDirectBinding (((Assignment)someExpression).lhs); > } >+ } else if (someExpression instanceof QualifiedNameReference) { >+ QualifiedNameReference qualifiedNameReference = (QualifiedNameReference) someExpression; >+ if (qualifiedNameReference.indexOfFirstFieldBinding != 1 >+ && qualifiedNameReference.otherBindings == null) { >+ // case where a static field is retrieve using ClassName.fieldname >+ return qualifiedNameReference.binding; >+ } > } > // } else if (someExpression instanceof PostfixExpression) { // recurse for postfix: i++ --> i > // // note: "b = b++" is equivalent to doing nothing, not to "b++"
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 200724
:
76783
|
76784
|
80549