You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2024/04/21 18:46:00 UTC
[jira] [Updated] (GROOVY-11362) implicit type of catch variable is written as Object
[ https://issues.apache.org/jira/browse/GROOVY-11362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Milles updated GROOVY-11362:
---------------------------------
Language: groovy
> 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.printStackTrtace()}}
> The debugger complains that printStackTrace is not a method of Object.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)