You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (Jira)" <ji...@apache.org> on 2022/12/08 07:51:00 UTC

[jira] [Comment Edited] (OFBIZ-12400) Upgrade to gradle 7.6 - support jdk 11 -> 17

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

Jacques Le Roux edited comment on OFBIZ-12400 at 12/8/22 7:50 AM:
------------------------------------------------------------------

About this last issue, I mean
bq. Caused by: java.lang.IllegalAccessException: class freemarker.ext.beans.BeansWrapper cannot access class sun.util.calendar.ZoneInfo (in module java.base) because module java.base does not export sun.util.calendar to unnamed module @1c852c0f

[The var timeZone is accessible in screen context|https://cwiki.apache.org/confluence/display/OFBIZ/Variables+always+available+in+screen+context]. The java.util.TimeZone class uses sun.util.calendar.ZoneInfo internally. We need to replace all occurrences of java.util.TimeZone by java.time.ZoneId

A temporary easy solution is to set --add-exports=java.base/sun.util.calendar=ALL-UNNAMED in build.gradle. It has no impact with JDK 11.
: ['-Xms128M','-Xmx1024M','-Djdk.serialFilter=maxarray=100000;maxdepth=20;maxrefs=1000;maxbytes=500000','--add-exports=java.base/sun.util.calendar=ALL-UNNAMED']

I have created OFBIZ-12721 for that




was (Author: jacques.le.roux):
About this last issue, I mean
bq. Caused by: java.lang.IllegalAccessException: class freemarker.ext.beans.BeansWrapper cannot access class sun.util.calendar.ZoneInfo (in module java.base) because module java.base does not export sun.util.calendar to unnamed module @1c852c0f

[The var timeZone is accessible in screen context|https://cwiki.apache.org/confluence/display/OFBIZ/Variables+always+available+in+screen+context]. The java.util.TimeZone class uses sun.util.calendar.ZoneInfo internally. We need to replace all occurrences of java.util.TimeZone by java.time.ZoneId

A temporary easy solution is to set --add-exports=java.base/sun.util.calendar=ALL-UNNAMED in build.gradle. It has no impact with JDK 11.
: ['-Xms128M','-Xmx1024M','-Djdk.serialFilter=maxarray=100000;maxdepth=20;maxrefs=1000;maxbytes=500000','--add-exports=java.base/sun.util.calendar=ALL-UNNAMED']

I'll create a Jira sub-task for that.



> Upgrade to gradle 7.6 - support jdk 11 -> 17
> --------------------------------------------
>
>                 Key: OFBIZ-12400
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12400
>             Project: OFBiz
>          Issue Type: Task
>            Reporter: Ioan Eugen Stan
>            Assignee: Ioan Eugen Stan
>            Priority: Major
>         Attachments: OFBIZ-12400-windows.patch
>
>
> For working with Java 17, we need to upgrade to gradle 7.3 



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