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 19:32:00 UTC
[jira] [Resolved] (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 resolved GROOVY-11362.
----------------------------------
Fix Version/s: 5.0.0-alpha-9
Resolution: Fixed
https://github.com/apache/groovy/commit/5bd57e9713d6dc89dcefcba9fcd7e03f4d36f785
> 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
> Fix For: 5.0.0-alpha-9
>
>
> 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)