You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (Jira)" <ji...@apache.org> on 2021/12/15 00:15:00 UTC
[jira] [Commented] (GROOVY-10415) ClassNode isStaticClass/setStaticClass should be deprecated and phased out
[ https://issues.apache.org/jira/browse/GROOVY-10415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17459568#comment-17459568 ]
Paul King commented on GROOVY-10415:
------------------------------------
So in the first instance we could simply remove the backing field and implement {{isStaticClass}} and {{setStaticClass}} using the appropriate {{getModifiers}} and {{setModifiers}} calls?
> ClassNode isStaticClass/setStaticClass should be deprecated and phased out
> --------------------------------------------------------------------------
>
> Key: GROOVY-10415
> URL: https://issues.apache.org/jira/browse/GROOVY-10415
> Project: Groovy
> Issue Type: Technical Debt
> Reporter: Eric Milles
> Priority: Minor
>
> {{org.codehaus.groovy.ast.ClassNode}} has field {{staticClass}}, {{isStaticClass()}} and {{setStaticClass(boolean)}} probably for legacy reasons. These should be replaced by use of {{getModifiers()}} and {{setModifiers(int)}}.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)