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 54769 Details for
Bug 166077
[compiler] extraneous tests in Scope#findExactMethod
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Fix
org.eclipse.jdt.core_01.txt (text/plain), 1.51 KB, created by
Maxime Daniel
on 2006-11-30 06:20:00 EST
(
hide
)
Description:
Fix
Filename:
MIME Type:
Creator:
Maxime Daniel
Created:
2006-11-30 06:20:00 EST
Size:
1.51 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.293 >diff -u -r1.293 Scope.java >--- compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java 28 Nov 2006 16:47:46 -0000 1.293 >+++ compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java 30 Nov 2006 09:04:23 -0000 >@@ -771,13 +771,8 @@ > return ParameterizedMethodBinding.instantiateGetClass(receiverType, exactMethod, this); > } > // targeting a generic method could find an exact match with variable return type >- if (exactMethod.typeVariables != Binding.NO_TYPE_VARIABLES || invocationSite.genericTypeArguments() != null) { >- MethodBinding compatibleMethod = computeCompatibleMethod(exactMethod, argumentTypes, invocationSite); >- // compatibleMethod should not be null thanks to the conditions guarding this block >- if (!compatibleMethod.isValidBinding() && exactMethod.typeVariables != Binding.NO_TYPE_VARIABLES) { >- return null; // could be a better generic method match (90423), which will be found by non exact match >- } >- exactMethod = compatibleMethod; >+ if (invocationSite.genericTypeArguments() != null) { >+ exactMethod = computeCompatibleMethod(exactMethod, argumentTypes, invocationSite); > } > return exactMethod; > }
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 166077
: 54769