cloning icon indicating copy to clipboard operation
cloning copied to clipboard

java.util.Date cloning error

Open lsliwko opened this issue 3 years ago • 2 comments

As in title, the error is:

java.lang.reflect.InaccessibleObjectException: Unable to make field private static final sun.util.calendar.BaseCalendar java.util.Date.gcal accessible: module java.base does not "opens java.util" to unnamed module @76908cc0

JRE is Oracle's Java 17.0.3.1 (JDK) I am using the latest cloning-1.10.3.jar

lsliwko avatar May 27 '22 08:05 lsliwko

any update ?

fazaza avatar Sep 09 '22 12:09 fazaza

I was able to resolve the issue with-

java ${JAVA_OPTS:-} \ --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/sun.util.calendar=ALL-UNNAMED -jar NAME_OF_JAR

You can read more about add-opens here

omkar9999 avatar Dec 16 '22 00:12 omkar9999