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 41871 Details for
Bug 142087
[1.5][compiler] NPE in computeCompatibleMethod
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed patch
142087.txt (text/plain), 2.22 KB, created by
Philipe Mulet
on 2006-05-18 07:47:39 EDT
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Philipe Mulet
Created:
2006-05-18 07:47:39 EDT
Size:
2.22 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.275 >diff -u -r1.275 Scope.java >--- compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java 16 May 2006 14:14:34 -0000 1.275 >+++ compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java 18 May 2006 11:49:49 -0000 >@@ -1121,7 +1121,7 @@ > if (isCompliant14 && (receiverType.isAbstract() || receiverType.isTypeVariable())) { > MethodBinding interfaceMethod = > findDefaultAbstractMethod(receiverType, selector, argumentTypes, invocationSite, classHierarchyStart, found); >- if (interfaceMethod != null) { >+ if (interfaceMethod != null && interfaceMethod.isValidBinding()) { > candidates = new MethodBinding[] {compatibleMethod, interfaceMethod}; > return mostSpecificMethodBinding(candidates, 2, argumentTypes, invocationSite, receiverType); > } >@@ -1201,7 +1201,7 @@ > if (isCompliant14 && (receiverType.isAbstract() || receiverType.isTypeVariable())) { > MethodBinding interfaceMethod = > findDefaultAbstractMethod(receiverType, selector, argumentTypes, invocationSite, classHierarchyStart, found); >- if (interfaceMethod != null) { >+ if (interfaceMethod != null && interfaceMethod.isValidBinding()) { > candidates = new MethodBinding[] {candidates[0], interfaceMethod}; > return mostSpecificMethodBinding(candidates, 2, argumentTypes, invocationSite, receiverType); > } >@@ -1243,7 +1243,7 @@ > // see if there is a better match in the interfaces - see AutoBoxingTest 99 > MethodBinding interfaceMethod = > findDefaultAbstractMethod(receiverType, selector, argumentTypes, invocationSite, classHierarchyStart, found); >- if (interfaceMethod != null) { >+ if (interfaceMethod != null && interfaceMethod.isValidBinding()) { > candidates = new MethodBinding[] {mostSpecificMethod, interfaceMethod}; > return mostSpecificMethodBinding(candidates, 2, argumentTypes, invocationSite, receiverType); > }
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 142087
: 41871