You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (Jira)" <ji...@apache.org> on 2020/11/28 03:21:00 UTC

[jira] [Commented] (GROOVY-9829) JmxBuilder export bean:specifying MBean ObjectName support GString

    [ https://issues.apache.org/jira/browse/GROOVY-9829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17239866#comment-17239866 ] 

Paul King commented on GROOVY-9829:
-----------------------------------

Apologies, I didn't see your issue before creating a new one.

> JmxBuilder export bean:specifying MBean ObjectName support GString
> ------------------------------------------------------------------
>
>                 Key: GROOVY-9829
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9829
>             Project: Groovy
>          Issue Type: Improvement
>          Components: groovy-jmx
>            Reporter: hdfg159
>            Priority: Minor
>
> JmxBuilder export Bean() Node - Specifying MBean ObjectName not support GString
> {code:java}
> void testBuildObjectWithGStringJmxName() {
>  def object = new MockManagedObject()
>  def name = "jmx.builder:type=TestObject@${object.hashCode()}"
>  def map = JmxMetaMapBuilder.buildObjectMapFrom(object, [
>  target: object,
>  name : name
>  ])
>  
>  assert map
>  assert map.jmxName.toString() == name
> }{code}
>  
> [https://github.com/apache/groovy/pull/1435] 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)