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 2024/04/02 15:21:00 UTC

[jira] [Commented] (OFBIZ-12813) Refactor groovy folder structure and add package declaration

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

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

Commit 0801432971091a3871cf1b13b1b2fea10b759670 in ofbiz-framework's branch refs/heads/trunk from Jacques Le Roux
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=0801432971 ]

Fixed: ArtifactInfo fails (OFBIZ-12988)

Not sure what changed since Stable apart OFBIZ-12813. Anyway only
parameters.location misses, else it works. So it seems an external change and
the fix is easy.


> Refactor groovy folder structure and add package declaration
> ------------------------------------------------------------
>
>                 Key: OFBIZ-12813
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12813
>             Project: OFBiz
>          Issue Type: Bug
>    Affects Versions: 22.01.01, Upcoming Branch
>            Reporter: Wiebke Paetzold
>            Assignee: Michael Brohl
>            Priority: Major
>             Fix For: Upcoming Branch
>
>
> Due to the upgrade to jdk17 all groovy Classes need a package declaration. 
> To get a distinct package naming a consistent folder structure is needed.
> For example, under framework -> base -> src there is a distinction between main and test. Within the test folder there is again a distinction between groovy and Java.
> This scheme should be applied everywhere. So a src folder contains main, test, ... within these folders there is again a distinction between groovy and java.
>  
> For more information visit:
> [http://groovy-lang.org/releasenotes/groovy-3.0.html#Groovy3.0releasenotes-Splitpackages]
> “The Java Platform Module System requires that classes in distinct modules have distinct package names. Groovy has its own "modules" but these haven’t historically been structured according to the above requirement. For this reason, Groovy 2.x and 3.0 should be added to the classpath not module path when using JDK9+. This places Groovy’s classes into the unnamed module where the split package naming requirement is not enforced.“



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