[jboss-jira] [JBoss JIRA] (WFCORE-406) Resource description for platform mbean properties that throw UnsupportedOperationException should say nillable="true"

Brian Stansberry (JIRA) issues at jboss.org
Thu Sep 1 13:42:00 EDT 2016


     [ https://issues.jboss.org/browse/WFCORE-406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry updated WFCORE-406:
------------------------------------
    Fix Version/s:     (was: 3.0.0.Alpha7)


I'm unscheduling this to try and get the 3.0 task list down to bugs, EAP 7.1 features or stuff we know is coming. Let me know if it's likely to happen for 3.0 Beta1.

> Resource description for platform mbean properties that throw UnsupportedOperationException should say nillable="true"
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: WFCORE-406
>                 URL: https://issues.jboss.org/browse/WFCORE-406
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Domain Management
>         Environment: FreeBSD, OpenJDK 1.6
>            Reporter: Brian Stansberry
>            Priority: Minor
>
> Some platform mbean getters are documented to throw a UOE on some VMs. The read-resource handler will catch the UOE and leave the attribute undefined, but the description says it's not nillable.
> Specifically, PlatformMBeanDescriptions.getThreadingResource()'s THREAD_CPU_TIME_ENABLED attribute, although there may well be others.
> This leads to this unit test failure on jvms where the UOE is thrown:
> failure message="thread-cpu-time-enabled is undefined" 
>  type="junit.framework.AssertionFailedError">junit.fra mework.AssertionFailedError: thread-cpu-time-enabled is undefined
>           at junit.framework.Assert.fail(Assert.java:50)
>           at junit.framework.Assert.assertTrue(Assert.java:20)
>           at 
>  org.jboss.as.platform.mbean.PlatformMBeanResourceUnitTestCase.validateResource(PlatformMBeanResourceUn
>  itTestCase.java:595)
>           at org.jboss.as.platform.mbean.PlatformMBeanResourceUnitTestCase.basicResourceTest(PlatformMBeanResourceUnitTestCase.java:563)
>           at 
>  org.jboss.as.platform.mbean.PlatformMBeanResourceUnitTestCase.testThreadingMXBean(PlatformMBeanResourceUnitTestCase.java:340)



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list