[ 
https://issues.apache.org/jira/browse/GROOVY-8500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Sun closed GROOVY-8500.
------------------------------
    Resolution: Fixed

Fixed by: 
https://github.com/apache/groovy/commit/49c0d8c5b602018cb29f038c91a4ac227f81a581

> Support logging the stacktrace of bytecode generation
> -----------------------------------------------------
>
>                 Key: GROOVY-8500
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8500
>             Project: Groovy
>          Issue Type: New Feature
>            Reporter: Daniel Sun
>            Assignee: Daniel Sun
>            Priority: Major
>             Fix For: 3.0.0-alpha-2, 2.5.0-rc-1, 2.6.0-alpha-4
>
>
> Add `groovy.log.classgen.stacktrace.max.depth` option to control max depth of 
> stacktrace(default value is 0).
>  
>  For example, if `-Dgroovy.log.classgen=true 
> -Dgroovy.log.classgen.stacktrace.max.depth=3` is passed into JVM, the 
> bytecode will be attached with some stacktrace tracking where the following 
> bytecode generated.
>  
> *bytecode snippet:*
> {code:java}
>                                         // 
> org.codehaus.groovy.classgen.AsmClassGenerator#onLineNumber:2215
>                                         // 
> org.codehaus.groovy.classgen.asm.StatementWriter#writeReturn:593
>                                         // 
> org.codehaus.groovy.classgen.AsmClassGenerator#visitReturnStatement:677
> LINENUMBER 13 L1
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to