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 73983 Details for
Bug 186114
IMethodBinding.overrides(..) should consider static
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_186114.txt (text/plain), 1.69 KB, created by
Olivier Thomann
on 2007-07-17 13:51:44 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2007-07-17 13:51:44 EDT
Size:
1.69 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: dom/org/eclipse/jdt/core/dom/MethodBinding.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/MethodBinding.java,v >retrieving revision 1.84 >diff -u -r1.84 MethodBinding.java >--- dom/org/eclipse/jdt/core/dom/MethodBinding.java 10 Apr 2007 19:03:10 -0000 1.84 >+++ dom/org/eclipse/jdt/core/dom/MethodBinding.java 17 Jul 2007 17:51:11 -0000 >@@ -477,7 +477,10 @@ > public boolean overrides(IMethodBinding overridenMethod) { > try { > org.eclipse.jdt.internal.compiler.lookup.MethodBinding overridenCompilerBinding = ((MethodBinding) overridenMethod).binding; >- if (this.binding == overridenCompilerBinding) >+ if (this.binding == overridenCompilerBinding >+ || overridenCompilerBinding.isStatic() >+ || overridenCompilerBinding.isPrivate() >+ || this.binding.isStatic()) > return false; > char[] selector = this.binding.selector; > if (!CharOperation.equals(selector, overridenCompilerBinding.selector)) >@@ -492,8 +495,7 @@ > if (lookupEnvironment == null) return false; > MethodVerifier methodVerifier = lookupEnvironment.methodVerifier(); > org.eclipse.jdt.internal.compiler.lookup.MethodBinding superMethod = superMethods[i]; >- return !superMethod.isPrivate() >- && !(superMethod.isDefault() && (superMethod.declaringClass.getPackage()) != this.binding.declaringClass.getPackage()) >+ return !(superMethod.isDefault() && (superMethod.declaringClass.getPackage()) != this.binding.declaringClass.getPackage()) > && methodVerifier.doesMethodOverride(this.binding, superMethod); > } > }
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 186114
: 73983 |
73984