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/07/25 05:10:48 UTC
[GitHub] [groovy] hdfg159 opened a new pull request #1323: JmxMetaMapBuilder.buildOperationMapFrom throw StringIndexOutOfBoundsException
hdfg159 opened a new pull request #1323:
URL: https://github.com/apache/groovy/pull/1323
JmxMetaMapBuilder.buildOperationMapFrom for method "get" or "set" throw StringIndexOutOfBoundsException
example:
```
class TestGet {
String sb
def get(String str) {
str
}
static main(args) {
def testGet = new TestGet()
def property = testGet.metaClass.getMethods()
def ms = testGet.getClass().getDeclaredMethods()*.name
def jmx = new JmxBuilder()
def beans = jmx.export {
bean(
target: new TestGet(),
attributes: [],
operations: "*"
)
}
}
}
```
after run:
```
Exception in thread "main" java.lang.RuntimeException: Failed to create component for 'bean' reason: java.lang.StringIndexOutOfBoundsException: begin 2, end 4, length 3
```
----------------------------------------------------------------
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
[GitHub] [groovy] asfgit closed pull request #1323: JmxMetaMapBuilder.buildOperationMapFrom throw StringIndexOutOfBoundsException
Posted by GitBox <gi...@apache.org>.
asfgit closed pull request #1323:
URL: https://github.com/apache/groovy/pull/1323
----------------------------------------------------------------
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
[GitHub] [groovy] danielsun1106 commented on pull request #1323: JmxMetaMapBuilder.buildOperationMapFrom throw StringIndexOutOfBoundsException
Posted by GitBox <gi...@apache.org>.
danielsun1106 commented on pull request #1323:
URL: https://github.com/apache/groovy/pull/1323#issuecomment-663836768
Merged with some minor tweaks.
Thanks for your contribution!
----------------------------------------------------------------
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
[GitHub] [groovy] danielsun1106 commented on pull request #1323: JmxMetaMapBuilder.buildOperationMapFrom throw StringIndexOutOfBoundsException
Posted by GitBox <gi...@apache.org>.
danielsun1106 commented on pull request #1323:
URL: https://github.com/apache/groovy/pull/1323#issuecomment-663838967
BTW, I find you are the 300th contributor. Congratulations!
----------------------------------------------------------------
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
[GitHub] [groovy] danielsun1106 commented on pull request #1323: JmxMetaMapBuilder.buildOperationMapFrom throw StringIndexOutOfBoundsException
Posted by GitBox <gi...@apache.org>.
danielsun1106 commented on pull request #1323:
URL: https://github.com/apache/groovy/pull/1323#issuecomment-663812931
It would be better to have a test in this PR
----------------------------------------------------------------
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