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 74074 Details for
Bug 166093
[search] NPE searching for references to private static method in class file
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
New proposed patch
v00.txt (text/plain), 1.12 KB, created by
Frederic Fusier
on 2007-07-18 12:21:42 EDT
(
hide
)
Description:
New proposed patch
Filename:
MIME Type:
Creator:
Frederic Fusier
Created:
2007-07-18 12:21:42 EDT
Size:
1.12 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: search/org/eclipse/jdt/internal/core/search/matching/MethodLocator.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MethodLocator.java,v >retrieving revision 1.75 >diff -u -r1.75 MethodLocator.java >--- search/org/eclipse/jdt/internal/core/search/matching/MethodLocator.java 25 Apr 2007 16:59:23 -0000 1.75 >+++ search/org/eclipse/jdt/internal/core/search/matching/MethodLocator.java 18 Jul 2007 14:55:17 -0000 >@@ -334,7 +334,7 @@ > // verify closest match if pattern was bound > // (see bug 70827) > if (focus != null && focus.getElementType() == IJavaElement.METHOD) { >- if (methodBinding != null) { >+ if (methodBinding != null && methodBinding.declaringClass != null) { > boolean isPrivate = Flags.isPrivate(((IMethod) focus).getFlags()); > if (isPrivate && !CharOperation.equals(methodBinding.declaringClass.sourceName, focus.getParent().getElementName().toCharArray())) { > return; // finally the match was not possible
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 166093
:
54766
| 74074