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 54168 Details for
Bug 165081
[1.5][compiler] Fup of bug 165069, unused imports are not reported
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed patch
165081.txt (text/plain), 1.70 KB, created by
Philipe Mulet
on 2006-11-20 08:02:55 EST
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Philipe Mulet
Created:
2006-11-20 08:02:55 EST
Size:
1.70 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java,v >retrieving revision 1.289 >diff -u -r1.289 Scope.java >--- compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java 8 Nov 2006 07:36:04 -0000 1.289 >+++ compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java 20 Nov 2006 12:56:39 -0000 >@@ -1515,7 +1515,7 @@ > if (unitScope.resolveSingleImport(importBinding) != null && importBinding.resolvedImport instanceof FieldBinding) { > foundField = (FieldBinding) importBinding.resolvedImport; > ImportReference importReference = importBinding.reference; >- if (importReference != null) importReference.used = true; >+ if (importReference != null && needResolve) importReference.used = true; > invocationSite.setActualReceiverType(foundField.declaringClass); > if (foundField.isValidBinding()) { > return foundField; >@@ -1541,7 +1541,7 @@ > } else if (temp.isStatic()) { > if (foundField == temp) continue; > ImportReference importReference = importBinding.reference; >- if (importReference != null) importReference.used = true; >+ if (importReference != null && needResolve) importReference.used = true; > if (foundInImport) > // Answer error binding -- import on demand conflict; name found in two import on demand packages. > return new ProblemReferenceBinding(name, null, ProblemReasons.Ambiguous);
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 165081
: 54168