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

Jason Greene (JIRA) issues at jboss.org
Sun Dec 22 01:02:56 EST 2013


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

Jason Greene updated WFLY-53:
-----------------------------

    Fix Version/s: 8.0.0.Final

    
> Resource description for platform mbean properties that throw UnsupportedOperationException should say nillable="true"
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: WFLY-53
>                 URL: https://issues.jboss.org/browse/WFLY-53
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Domain Management
>         Environment: FreeBSD, OpenJDK 1.6
>            Reporter: Brian Stansberry
>            Priority: Minor
>             Fix For: 8.0.0.CR1, 8.0.0.Final
>
>
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list