Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 154051 Details for
Bug 236541
[GCJ Bug] help doesn't work
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch for Classpath
pp (text/plain), 2.16 KB, created by
Andrew Haley
on 2007-05-03 17:22:50 UTC
(
hide
)
Description:
Patch for Classpath
Filename:
MIME Type:
Creator:
Andrew Haley
Created:
2007-05-03 17:22:50 UTC
Size:
2.16 KB
patch
obsolete
>2007-05-03 Andrew Haley <aph@redhat.com> > > * gnu/javax/management/Server.java (Server): Record the delegate. > (registerMBean): Notify the delegate. > (unregisterMBean): Likewise. > (notify): New method. > >Index: Server.java >=================================================================== >--- Server.java (revision 124185) >+++ Server.java (working copy) >@@ -53,6 +53,7 @@ > import java.util.Iterator; > import java.util.Map; > import java.util.Set; >+import java.util.concurrent.atomic.AtomicLong; > > import javax.management.Attribute; > import javax.management.AttributeList; >@@ -75,6 +76,7 @@ > import javax.management.MBeanRegistrationException; > import javax.management.MBeanServer; > import javax.management.MBeanServerDelegate; >+import javax.management.MBeanServerNotification; > import javax.management.MBeanTrustPermission; > import javax.management.NotCompliantMBeanException; > import javax.management.Notification; >@@ -137,6 +139,15 @@ > private Map listeners; > > /** >+ * An MBean that emits notifications when an MBean is registered and >+ * unregistered with this server. >+ * >+ */ >+ private final MBeanServerDelegate delegate; >+ >+ static private final AtomicLong sequenceNumber = new AtomicLong(); >+ >+ /** > * Initialise the delegate name. > */ > static >@@ -171,6 +182,7 @@ > { > this.defaultDomain = defaultDomain; > this.outer = outer; >+ this.delegate = delegate; > try > { > registerMBean(delegate, DELEGATE_NAME); >@@ -1703,6 +1715,7 @@ > beans.put(name, new ServerInfo(obji, obj)); > if (register != null) > register.postRegister(Boolean.TRUE); >+ notify(name, MBeanServerNotification.REGISTRATION_NOTIFICATION); > return obji; > } > >@@ -2088,6 +2101,7 @@ > } > } > beans.remove(name); >+ notify(name, MBeanServerNotification.UNREGISTRATION_NOTIFICATION); > if (register != null) > register.postDeregister(); > } >@@ -2149,6 +2163,13 @@ > } > } > >+ private void notify(ObjectName name, String type) >+ { >+ delegate.sendNotification >+ (new MBeanServerNotification >+ (type, DELEGATE_NAME, sequenceNumber.getAndIncrement(), name)); >+ } >+ > /** > * Notification listener which removes direct references > * to beans.
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 236541
: 154051