You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by GitBox <gi...@apache.org> on 2020/11/27 21:47:54 UTC

[GitHub] [groovy] paulk-asert commented on a change in pull request #1435: JmxBuilder export bean:specifying MBean ObjectName support GString.

paulk-asert commented on a change in pull request #1435:
URL: https://github.com/apache/groovy/pull/1435#discussion_r531792944



##########
File path: subprojects/groovy-jmx/src/main/groovy/groovy/jmx/builder/JmxMetaMapBuilder.groovy
##########
@@ -172,7 +172,7 @@ class JmxMetaMapBuilder {
     private static ObjectName getObjectName(def map) {
         if (!map) return null
         def jmxName
-        if (map.name instanceof String) {
+        if (map.name instanceof String || map.name instanceof GString) {

Review comment:
       I'll merge but tweak with the suggestion from @eric-milles




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org