Commit Graph

153 Commits

Author SHA1 Message Date
Shanliang Jiang
70dbc1d222 8031036: com/sun/management/OperatingSystemMXBean/GetCommittedVirtualMemorySize.java failed on 8b121
Reviewed-by: dfuchs
2014-05-02 14:40:52 +02:00
Lana Steuck
657b9db1ba 8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
Updated files with 2011, 2012 and 2013 years according to the file's last updated date

Reviewed-by: tbell, lancea, chegar
2013-12-26 12:04:16 -08:00
Jaroslav Bachorik
65bdf9f853 8031559: javax/management/monitor/StartStopTest.java fails intermittently
Reviewed-by: dfuchs, sla
2014-01-21 09:17:23 +01:00
Lana Steuck
1a633e63a9 Merge 2013-11-15 07:14:23 -08:00
Erik Gahlin
964b256741 6959636: testcase failing on windows javax/management/loading/LibraryLoader/LibraryLoaderTest.java
Reviewed-by: sla, jbachorik
2013-11-13 15:21:53 +01:00
Sergey Bylokhov
9ab430a0d2 8027696: Incorrect copyright header in the tests
Reviewed-by: alanb, malenkov, mullan
2013-11-12 20:24:25 +04:00
Erik Gahlin
2b13aab668 8027209: javax/management/monitor/ThreadPoolAccTest.java fails intermittently
Reviewed-by: sla, jbachorik
2013-11-12 14:52:42 +01:00
Jaroslav Bachorik
5e52c4d90e 7140929: NotSerializableNotifTest.java fails intermittently
Reviewed-by: sjiang, alanb
2013-10-21 13:57:11 +02:00
Jaroslav Bachorik
1197f7a799 8024613: javax/management/remote/mandatory/connection/RMIConnector_NPETest.java failing intermittently
RMID needs a varying amount of time to start its socket server. We need to cater for it.

Reviewed-by: sjiang, dfuchs, sla
2013-10-21 10:54:46 +02:00
Chris Hegarty
766e77499d Merge 2013-10-15 09:27:32 +01:00
Shanliang Jiang
bc140e3172 8025204: Intermittent test failure: javax/management/remote/mandatory/connection/IdleTimeoutTest.java
Reviewed-by: dholmes, jbachorik
2013-10-10 17:47:15 +02:00
Shanliang Jiang
c8a7fb8dce 8025205: Intermittent test failure: javax/management/remote/mandatory/connection/BrokenConnectionTest.java
Reviewed-by: dholmes, dfuchs, jbachorik
2013-10-10 09:01:19 +02:00
Shanliang Jiang
5a3e98293d 8025206: Intermittent test failure: javax/management/monitor/NullAttributeValueTest.java
Reviewed-by: dholmes, dfuchs, jbachorik
2013-10-10 08:49:12 +02:00
Shanliang Jiang
65d897864d 8025207: Intermittent test failure: javax/management/monitor/CounterMonitorThresholdTest.java
Reviewed-by: dfuchs, dholmes
2013-10-10 08:37:48 +02:00
Chris Hegarty
6088b141e2 Merge 2013-10-03 19:06:43 +01:00
Shanliang Jiang
81cd0a8738 8023954: MBean*Info.equals: throw NPE
Reviewed-by: dfuchs, dholmes
2013-09-18 08:51:23 +02:00
Shanliang Jiang
f6e4c46294 8023669: MBean*Info.hashCode : NPE
Reviewed-by: dholmes, dfuchs, jbachorik
2013-09-13 10:48:12 +02:00
Shanliang Jiang
c6aa9956df 8023529: OpenMBeanInfoSupport.equals/hashCode throw NPE
Reviewed-by: dholmes, dfuchs
2013-09-12 09:41:28 +02:00
Shanliang Jiang
dbca0a2b85 6566891: RMIConnector: map value referencing map key in WeakHashMap prevents map entry to be removed
Reviewed-by: egahlin, jbachorik, dfuchs, dholmes
2013-08-30 12:49:41 +02:00
Chris Hegarty
63af2166ea Merge 2013-07-29 14:58:48 +01:00
Jaroslav Bachorik
eef8299094 8019584: javax/management/remote/mandatory/loading/MissingClassTest.java failed in nightly against jdk7u45: java.io.InvalidObjectException: Invalid notification: null
Reviewed-by: mchung, sjiang, dfuchs, ahgross
2013-07-19 16:29:26 +02:00
Jaroslav Bachorik
ec6cb721e1 8010285: Enforce the requirement of Management Interfaces being public
Reviewed-by: sjiang, dfuchs, mchung
2013-07-11 21:11:03 +02:00
Jaroslav Bachorik
7c11aba793 7199324: Connection ID for IPv6 addresses is not generated accordingly to the specification
RemoteServer.getClientHost is returning a String with an IPv6 literal address and we need to enclose it in [] when building the connection id

Reviewed-by: alanb, sjiang
2013-05-02 13:21:09 +02:00
Lana Steuck
4f62a2b334 Merge 2013-03-15 23:31:19 -07:00
Yiming Wang
a7f501c620 7183800: TEST_BUG: Update tests to run on Ubuntu 12.04 (localhost is 127.0.1.1)
Reviewed-by: alanb, chegar
2013-03-14 16:59:06 +00:00
Edvard Wendelin
2f5be3ab0d Merge 2013-02-25 08:44:00 +01:00
David Holmes
390cc1d7a1 Merge 2013-02-17 16:44:19 -05:00
Jaroslav Bachorik
d1a58e452a 7170447: Intermittent DeadListenerTest.java failure
Due to asynchronous nature of processing server notifications it may happen that an "unregister" notification ha$

Reviewed-by: sjiang
2013-02-05 12:28:47 +01:00
Daniel Fuchs
7303280ef5 8006446: Restrict MBeanServer access
Reviewed-by: alanb, mchung, darcy, jrose, ahgross, skoivu
2013-01-30 11:33:51 +01:00
Alan Bateman
a23a1a942b 8004502: Compact Profiles contents
Reviewed-by: dholmes, mchung
2013-01-21 23:35:36 -05:00
Shanliang Jiang
36ae539974 7120365: DiffHBTest.java fails due to ConcurrentModificationException
The problem is from the server notification forwarder, it should use a copy of listener set to do iterate.

Reviewed-by: alanb
2012-12-28 16:44:27 +01:00
Alan Bateman
27f7bfd9f0 8001048: JSR-160: Allow IIOP transport to be optional
Reviewed-by: dsamersoff, dfuchs, mchung
2012-12-20 20:29:59 +00:00
Jaroslav Bachorik
96c02bccd3 8005309: Missed tests for 6783290,6937053,7009998
Missed tests for 6783290,6937053,7009998

Reviewed-by: sjiang, emcmanus
2012-12-20 20:12:32 +04:00
Alan Bateman
430592a30e 7197491: update copyright year to match last edit in jdk8 jdk repository
Reviewed-by: chegar, ksrini
2012-11-02 15:50:11 +00:00
Jaroslav Bachorik
3e4e347c26 6976971: TEST: javax/management/remote/mandatory/URLTest.java should be re-integrated
Reviewed-by: alanb
2012-10-24 20:44:07 +01:00
Jaroslav Bachorik
9c38da478a 6809322: javax.management.timer.Timer does not fire all notifications
Some notifications get dropped due to ConcurrentModificationException thrown in Timer.notifyAlarmClock() method.

Reviewed-by: dholmes, rbackman
2012-10-17 18:34:07 +04:00
Staffan Larsen
10b80ccca6 7198849: Make javax/management/remote/mandatory/notif/ListenerScaleTest.java less timing sensitive
Reviewed-by: alanb
2012-09-17 12:40:33 +02:00
Keith McGuigan
2ba6bd02d2 7044203: Missing @test tag in test/javax/management/timer/StartTest.java
Add tag

Reviewed-by: alanb
2011-05-12 08:17:29 -04:00
Keith McGuigan
91db4e26f7 6659215: javax.management.timer.Timer frequently fails to start
Copy array to avoid ConcurrentModificationException

Reviewed-by: dcubed, alanb
2011-05-11 20:18:13 -04:00
Sean Coffey
c661170adb 6957378: JMX memory leak
Reviewed-by: emcmanus, kevinw
2010-11-05 17:15:44 +00:00
Sean Coffey
9072e150d7 6696028: JMXServiceURL like service:jmx:rmi:///jndi/iiop:// should be rejected by the RMI conn provider
6984520: NPE IN RMIConnector.connect

Reviewed-by: emcmanus, kevinw
2010-11-05 13:52:37 +00:00
Kelly O'Hair
fe008ae27a 6943119: Rebrand source copyright notices
Reviewed-by: darcy, weijun
2010-05-25 15:58:33 -07:00
Eamonn McManus
bfedf39895 6851617: Remove JSR 255 (JMX API 2.0) from JDK 7
See http://weblogs.java.net/blog/2009/06/16/jsr-255-jmx-api-20-postponed

Reviewed-by: dfuchs
2009-10-21 17:33:18 +02:00
Tim Bell
928a098209 Merge 2008-12-19 10:37:50 -08:00
Xiomara Jayasena
cc8641d33a 6785258: Update copyright year
Update copyright for files that have been modified starting July 2008 to Dec 2008

Reviewed-by: katleman, ohair, tbell
2008-12-15 16:55:25 -08:00
Eamonn McManus
871bbff9ce 6456269: Add a GenericMBeanException so clients don't have to have server's exception classes present
Reviewed-by: jfdenise, dfuchs
2008-12-10 11:59:32 +01:00
Shanliang Jiang
0a521a9457 Merge 2008-12-09 20:51:59 +01:00
Shanliang Jiang
16870a7767 6336980: NotificationBroadcasterSupport: to tell whether there are listeners and to do clear
Reviewed-by: emcmanus
2008-12-09 20:50:45 +01:00
Daniel Fuchs
2064095b24 6768935: Clarify the behaviour of ObjectName pattern matching with regards to namespaces
Reviewed-by: emcmanus
2008-12-09 20:20:48 +01:00
Shanliang Jiang
6a4903d458 6332907: Add ability for connector server to close individual connections
Reviewed-by: emcmanus
2008-12-09 19:44:22 +01:00
Shanliang Jiang
e7d171eac3 Merge 2008-12-09 18:45:09 +01:00
Shanliang Jiang
d2c931b222 6760712: Provide a connector server option that causes it not to prevent the VM from exiting
Reviewed-by: emcmanus
2008-12-09 18:42:13 +01:00
Jean-Francois Denise
85e1e1e290 6287328: Add methods to StandardMBean to retrieve a method based on MBean{Attribute|Operation}Info
Reviewed-by: emcmanus
2008-12-09 16:26:30 +01:00
Jean-Francois Denise
ef7000f82e 6450834: RFE: allow StandardMBean to call MBeanRegistration methods on its wrapped resource
6373143: MonitorNotification should have a public constructor

Reviewed-by: emcmanus
2008-12-09 16:14:53 +01:00
Jean-Francois Denise
b14fec6973 6675526: Define an Annotation to name registered MBeans
Reviewed-by: emcmanus
2008-12-09 15:57:09 +01:00
Jean-Francois Denise
04950cd846 6250014: MBeanOperationInfo Descriptor field for exceptions
Reviewed-by: emcmanus
2008-12-09 15:36:14 +01:00
Jean-Francois Denise
049436370f 6501362: DescriptorSupport(String) could recognize "name=value" as well as XML format
Reviewed-by: emcmanus
2008-12-09 14:44:42 +01:00
Eamonn McManus
5588717cc4 6774918: @NotificationInfo is ineffective on MBeans that cannot send notifications
Reviewed-by: jfdenise
2008-12-09 12:01:07 +01:00
Eamonn McManus
70624128b4 6776225: JMX.isNotificationSource wrong when DynamicWrapperMBean + SendNotification injection
Reviewed-by: dfuchs, jfdenise
2008-11-27 15:44:32 +01:00
Eamonn McManus
4d6c508c34 6772779: @NotificationInfo does not create MBeanNotificationInfo in the MBean's MBeanInfo
6773593: CompositeDataSupport constructor javadoc is not in sync with the implementation

Reviewed-by: sjiang
2008-11-20 10:10:48 +01:00
Daniel Fuchs
907d90158a 6683213: CounterMonitor's derived Gauge badly initialized
Reviewed-by: emcmanus
2008-11-14 17:22:10 +01:00
Eamonn McManus
bbac59f218 6336968: Methods to convert AttributeList to/from Map
6750008: Add JMX.getSpecificationVersion(MBeanServerConnection) and document interop
6750472: Add a way to convert a CompositeData into a Map
6752563: Allow CompositeDataSupport to have zero items

Small JMX RFEs

Reviewed-by: dfuchs
2008-11-07 19:19:08 +01:00
Eamonn McManus
ab227cb671 5072267: A way to communicate client context such as locale to the JMX server
Support for client contexts and also for localization of descriptions

Reviewed-by: dfuchs
2008-11-07 11:48:07 +01:00
Eamonn McManus
5118c7cd7f 6766173: Spec should say that createMBean wraps a constructor RuntimeException in a RuntimeMBeanException
JMX spec clarification

Reviewed-by: dfuchs
2008-10-31 17:34:52 +01:00
Eamonn McManus
44dcc74e78 6252609: Two different default descriptor forms defined for ModelMBeanInfoSupport
6253137: Documentation for NotificationListener's handback parameter is confusing
6368691: javadoc for JMX Descriptors has bugs and is very hard to navigate
6602699: support for async notification of mbeaninfo update
6759612: [javadoc] EventClient.NOTIFS_LOST has a garbled href to addEventClientListener
6759619: Clarify what EventClient.getEventClientNotificationInfo does
6759622: Clarify what EventClient.getListeners list does

Documentation fixes, plus simple bugfix for 6759619.

Reviewed-by: dfuchs
2008-10-30 17:46:50 +01:00
Eamonn McManus
540b83b6b1 6763051: MXBean: Incorrect type names for parametrized dealing with arrays (openType)
6713777: developer diagnosability of errors in uncompliant mxbean interfaces

Reviewed-by: dfuchs
2008-10-28 18:21:36 +01:00
Eamonn McManus
8fe5a021a3 6757225: MXBean: Incorrect type names for parametrized types, dealing with arrays
Reviewed-by: sjiang
2008-10-08 18:38:25 +02:00
Tim Bell
1e22a7ec76 Merge 2008-10-04 22:48:54 -07:00
Xiomara Jayasena
6e86513c3a 6754988: Update copyright year
Update for files that have been modified starting July 2008

Reviewed-by: ohair, tbell
2008-10-02 19:58:32 -07:00
Eamonn McManus
6caae4568d 6750935: The expected NotCompliantMBeanException is not thrown for the custom MXBeanMappingFactory
6751872: MXBeanMappingFactory example says "implements" when it should be "extends"

Reviewed-by: dfuchs
2008-09-24 15:19:07 +02:00
Shanliang Jiang
2e7b00b7d5 6697180: JMX query results in java.io.IOException: Illegal state - also a deadlock can also be seen
Reviewed-by: emcmanus
2008-09-22 15:43:12 +02:00
Daniel Fuchs
c3552d0201 6747983: jmx namespace: unspecified self-link detection logic
Reviewed-by: emcmanus
2008-09-12 19:06:38 +02:00
Eamonn McManus
a1e4e3ec94 6747411: EventClient causes thread leaks
Reworked thread management in EventClient and related classes.

Reviewed-by: sjiang, dfuchs
2008-09-12 15:17:52 +02:00
Daniel Fuchs
b2e851f920 6746754: jmx namespace: test for leading separator missing
6669137: RFE: InstanceNotFoundException should have a constructor that takes an ObjectName
6746796: jmx namespaces: Several tests are missing an @bug or @run keyword

Note on 6669137: first implementation of 6669137 was actually pushed with 5072476 - here we only have a small update and a test case. Also re-fixes 6737133: Compilation failure of test/javax/management/eventService/LeaseManagerDeadlockTest.java which had failed.

Reviewed-by: emcmanus, yjoan
2008-09-10 16:27:13 +02:00
Eamonn McManus
a4ef2ba11d 6734813: Provide a way to construct an ObjectName without checked exceptions
6746649: ObjectName constructors and methods declare unchecked exceptions in throws clauses

Reviewed-by: dfuchs
2008-09-10 13:36:47 +02:00
Daniel Fuchs
4e22cb6970 6745832: jmx namespaces: Some refactoring/commenting would improve code readability
Reviewed-by: emcmanus
2008-09-09 17:01:45 +02:00
Shanliang Jiang
ebdad848b8 6736611: [Evt Srv] EventSubscriber.unsubscribe removes other listeners
Reviewed-by: emcmanus
2008-09-09 14:17:29 +02:00
Daniel Fuchs
6b53043eea 5072476: RFE: support cascaded (federated) MBean Servers
6299231: Add support for named MBean Servers

New javax.management.namespace package.

Reviewed-by: emcmanus
2008-09-04 14:46:36 +02:00
Eamonn McManus
ab464bccd1 6744132: Spurious failures from test/javax/management/MBeanInfo/NotificationInfoTest.java
Reviewed-by: dfuchs
2008-09-03 14:31:17 +02:00
Eamonn McManus
fdfb7acee2 6405862: Allow CompositeType to have zero items
6737133: Compilation failure of test/javax/management/eventService/LeaseManagerDeadlockTest.java
6737140: Javadoc of some throw clauses of MBeanServer and MBeanServerConnection is garbled
6737143: createMBean of MBeanServer should acquire 2 extra throw clauses present in MBeanServerConnection

Reviewed-by: dfuchs
2008-09-02 14:14:05 +02:00
Eamonn McManus
50a610e81c 6731410: JMXServiceURL cannot use @ConstructorProperties for compatibility reasons
Reviewed-by: dfuchs
2008-09-01 17:11:58 +02:00
Eamonn McManus
e2890ec21a 6610174: Improve CompositeDataSupport.toString when it includes arrays
Reviewed-by: dfuchs
2008-08-08 18:36:19 +02:00
Eamonn McManus
2d8b7bbf47 6334663: TabularDataSupport should be able to return values in the insertion order
Reviewed-by: dfuchs
2008-08-08 15:08:57 +02:00
Eamonn McManus
e174ee8284 6733589: Intermittent failure of test/javax/management/eventService/SharingThreadTest.java
Reviewed-by: sjiang
2008-08-05 10:49:58 +02:00
Daniel Fuchs
3e4831d05d 6616825: JMX query returns no value in 1.0 compatibility mode - deserialization bug in readObject()
Reviewed-by: emcmanus
2008-07-31 17:38:55 +02:00
Shanliang Jiang
cf105cf085 5108776: Add reliable event handling to the JMX API
6218920: API bug - impossible to delete last MBeanServerForwarder on a connector

Reviewed-by: emcmanus
2008-07-31 15:31:13 +02:00
Daniel Fuchs
22260fb95d 6689505: Improve MBeanServerNotification.toString
Reviewed-by: emcmanus
2008-07-31 14:20:11 +02:00
Daniel Fuchs
192678a793 6730926: Document that create/registerMBean can throw RuntimeMBeanException from postRegister
Reviewed-by: emcmanus
2008-07-31 12:41:35 +02:00
Tim Bell
39285cadc4 Merge 2008-07-09 09:56:00 -07:00
Eamonn McManus
4333dd3520 6323980: Annotations to simplify MBean development
Reviewed-by: jfdenise, dfuchs
2008-07-09 10:36:07 +02:00
Tim Bell
d969562df7 Merge 2008-07-05 23:29:16 -07:00
Eamonn McManus
5967d518b5 6601652: MXBeans: no IllegalArgumentException in the ex. chain for SortedSet/Map with a non-null comparator()
Forward-port this bug fix from JDK 6

Reviewed-by: dfuchs, lmalvent
2008-07-04 18:55:37 +02:00
Xiomara Jayasena
2617d1d179 6719955: Update copyright year
Update copyright year for files that have been modified in 2008

Reviewed-by: ohair, tbell
2008-07-02 12:55:45 -07:00
Eamonn McManus
dfe323d640 6562936: Support custom type mappings in MXBeans
Reviewed-by: dfuchs
2008-06-05 13:42:47 +02:00
Eamonn McManus
e01cfb7fa8 6701498: Change JMX query language to use * and ? as wildcards rather than % and _
Reviewed-by: dfuchs
2008-06-05 13:40:09 +02:00
Daniel Fuchs
eaa732b2fd 6673853: LegacyIntrospectorTest is testing an old deprecated com.sun API not present in OpenJDK
Removed test from open test suite - the corresponding deprecated legacy API is not in open source tree

Reviewed-by: emcmanus
2008-05-29 15:33:14 +02:00
Eamonn McManus
b57cf5b990 6703552: Missing files from changeset for 6701459
Previous push missed a small number of files.

Reviewed-by: dfuchs
2008-05-16 11:34:34 +02:00
Eamonn McManus
1ca7f71818 6692027: Custom subclasses of QueryEval don't serialize
Remove non-public superclass of QueryEval

Reviewed-by: dfuchs
2008-04-22 18:58:40 +02:00
Eamonn McManus
332059a555 6610917: Define a generic NotificationFilter
Adds javax.management.QueryNotificationFilter

Reviewed-by: dfuchs
2008-04-01 14:45:23 +02:00
Eamonn McManus
bca4fce00a 6675768: NoSuchElementException thrown in RequiredModelMBean when tracing enabled
Rewrite logging in RequiredModelMBean.addAttributeChangeNotificationListener

Reviewed-by: dfuchs
2008-03-19 15:17:22 +01:00