[
https://issues.apache.org/jira/browse/GROOVY-9261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16945565#comment-16945565
]
Daniel Sun commented on GROOVY-9261:
------------------------------------
Fixed by
[https://github.com/apache/groovy/commit/68fe49af7e53ce73a2e64a0899536563397c2609]
> Refine type checking for ARM
> ----------------------------
>
> Key: GROOVY-9261
> URL: https://issues.apache.org/jira/browse/GROOVY-9261
> Project: Groovy
> Issue Type: Improvement
> Reporter: Daniel Sun
> Assignee: Daniel Sun
> Priority: Major
> Fix For: 3.0.0-rc-1
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Currently any types of variables can be declared in ARM, so exceptions could
> be thrown at runtime if the variables are not of type {{AutoCloseable}}. We
> should check the type of resource when SC/STC is enabled.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)