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 126483 Details for
Bug 233356
[search] NPE in org.eclipse.jdt.internal.compiler.util.SimpleLookupTable.get()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed patch
v02.txt (text/plain), 2.03 KB, created by
Frederic Fusier
on 2009-02-23 12:44:14 EST
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Frederic Fusier
Created:
2009-02-23 12:44:14 EST
Size:
2.03 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: search/org/eclipse/jdt/internal/core/search/JavaSearchParticipant.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/JavaSearchParticipant.java,v >retrieving revision 1.16 >diff -u -r1.16 JavaSearchParticipant.java >--- search/org/eclipse/jdt/internal/core/search/JavaSearchParticipant.java 27 Jun 2008 16:04:09 -0000 1.16 >+++ search/org/eclipse/jdt/internal/core/search/JavaSearchParticipant.java 23 Feb 2009 17:22:46 -0000 >@@ -28,21 +28,22 @@ > */ > public class JavaSearchParticipant extends SearchParticipant { > >- IndexSelector indexSelector; >+// IndexSelector indexSelector; >+ private ThreadLocal indexSelector = new ThreadLocal(); > > /* (non-Javadoc) > * @see org.eclipse.jdt.core.search.SearchParticipant#beginSearching() > */ > public void beginSearching() { > super.beginSearching(); >- this.indexSelector = null; >+ this.indexSelector.set(null); > } > > /* (non-Javadoc) > * @see org.eclipse.jdt.core.search.SearchParticipant#doneSearching() > */ > public void doneSearching() { >- this.indexSelector = null; >+ this.indexSelector.set(null); > super.doneSearching(); > } > >@@ -97,14 +98,14 @@ > /* (non-Javadoc) > * @see org.eclipse.jdt.core.search.SearchParticipant#selectIndexes(org.eclipse.jdt.core.search.SearchQuery, org.eclipse.jdt.core.search.SearchContext) > */ >- public IPath[] selectIndexes( >- SearchPattern pattern, >- IJavaSearchScope scope) { >+ public IPath[] selectIndexes(SearchPattern pattern, IJavaSearchScope scope) { > >- if (this.indexSelector == null) { >- this.indexSelector = new IndexSelector(scope, pattern); >+ IndexSelector selector = (IndexSelector) this.indexSelector.get(); >+ if (selector == null) { >+ selector = new IndexSelector(scope, pattern); >+ this.indexSelector.set(selector); > } >- return this.indexSelector.getIndexLocations(); >+ return selector.getIndexLocations(); > } > > }
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 233356
: 126483