[ https://issues.apache.org/jira/browse/GROOVY-11362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Milles updated GROOVY-11362: --------------------------------- Description: Consider the following: {code:groovy} void test(args) { try { args.name } catch (e) { print(e) } } {code} Set a breakpoint within the catch block and try to evaluate an expression with "e" like: {{e.printStackTrace()}} The debugger complains that "printStackTrace" is not a method of java.lang.Object. was: Consider the following: {code:groovy} void test(args) { try { args.name } catch (e) { print(e) } } {code} Set a breakpoint within the catch block and try to evaluate an expression with "e" like: {{e.printStackTrtace()}} The debugger complains that printStackTrace is not a method of Object. > implicit type of catch variable is written as Object > ---------------------------------------------------- > > Key: GROOVY-11362 > URL: https://issues.apache.org/jira/browse/GROOVY-11362 > Project: Groovy > Issue Type: Bug > Components: Compiler > Reporter: Eric Milles > Assignee: Eric Milles > Priority: Major > > Consider the following: > {code:groovy} > void test(args) { > try { > args.name > } catch (e) { > print(e) > } > } > {code} > Set a breakpoint within the catch block and try to evaluate an expression > with "e" like: {{e.printStackTrace()}} > The debugger complains that "printStackTrace" is not a method of > java.lang.Object. -- This message was sent by Atlassian Jira (v8.20.10#820010)