You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2025/10/10 09:05:00 UTC

[jira] [Commented] (OFBIZ-13301) Update codenarc version to 3.6.0

    [ https://issues.apache.org/jira/browse/OFBIZ-13301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18028980#comment-18028980 ] 

ASF subversion and git services commented on OFBIZ-13301:
---------------------------------------------------------

Commit faa132ab022dbbb2f1a7bb833153219378ba0b07 in ofbiz-framework's branch refs/heads/trunk from Nicolas Malin
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=faa132ab02 ]

Improved: Update codenarc version to 3.6.0 (OFBIZ-13301)

Currently, codenarc 3.5.0 doesn't support groovy 4 and if we use java 17 syntax like direct switch, the file failed and not analysed :

****
    switch (myVar) {
       case x -> return true
    }
****

To fix, we update codenarc to the latest version with groovy4 support : CodeNarc-3.6.0-groovy-4.0.jar [1]

[1] https://github.com/CodeNarc/CodeNarc/releases/download/v3.6.0/CodeNarc-3.6.0-groovy-4.0.jar


> Update codenarc version to 3.6.0
> --------------------------------
>
>                 Key: OFBIZ-13301
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-13301
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>            Reporter: Nicolas Malin
>            Assignee: Nicolas Malin
>            Priority: Minor
>
> Currently, codenarc 3.5.0 doesn't support groovy 4 and if we use java 17 syntax like direct switch, the file failed and not analysed :
>  
> {code:java}
> switch (myVar) {
>    case x -> return true
> }
> {code}
> the file failed and not analysed.
> To fix, we update codenarc to the latest version with groovy4 support : [CodeNarc-3.6.0-groovy-4.0.jar |https://github.com/CodeNarc/CodeNarc/releases/download/v3.6.0/CodeNarc-3.6.0-groovy-4.0.jar]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)