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 45857 Details for
Bug 149863
BundleContextImpl has unsync'ed access to EventListeners.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Illustrative Patch of BundleContextImpl#removeXXXListener()
Listener_Illustrative0706_patch.txt (text/plain), 1.54 KB, created by
Ikuo Yamasaki
on 2006-07-06 13:24:38 EDT
(
hide
)
Description:
Illustrative Patch of BundleContextImpl#removeXXXListener()
Filename:
MIME Type:
Creator:
Ikuo Yamasaki
Created:
2006-07-06 13:24:38 EDT
Size:
1.54 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.osgi >Index: core/framework/org/eclipse/osgi/framework/internal/core/BundleContextImpl.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/BundleContextImpl.java,v >retrieving revision 1.23 >diff -u -r1.23 BundleContextImpl.java >--- core/framework/org/eclipse/osgi/framework/internal/core/BundleContextImpl.java 21 Jun 2006 03:41:01 -0000 1.23 >+++ core/framework/org/eclipse/osgi/framework/internal/core/BundleContextImpl.java 6 Jul 2006 17:01:11 -0000 >@@ -351,6 +351,10 @@ > if (serviceEvent != null) { > synchronized (framework.serviceEvent) { > serviceEvent.removeListener(listener); >+ if(serviceEvent.getSize()==0){ >+ serviceEvent = null; >+ framework.serviceEvent.removeListener(this); >+ } > } > } > } >Index: core/framework/org/eclipse/osgi/framework/eventmgr/EventListeners.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/eventmgr/EventListeners.java,v >retrieving revision 1.9 >diff -u -r1.9 EventListeners.java >--- core/framework/org/eclipse/osgi/framework/eventmgr/EventListeners.java 10 May 2006 16:17:28 -0000 1.9 >+++ core/framework/org/eclipse/osgi/framework/eventmgr/EventListeners.java 6 Jul 2006 17:01:11 -0000 >@@ -231,4 +231,8 @@ > this.companion = companion; > } > } >+ >+ public synchronized int getSize() { >+ return size; >+ } > }
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 149863
: 45857 |
47796
|
48040
|
48041