Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.util.Date cloning error #118

Open
lsliwko opened this issue May 27, 2022 · 2 comments
Open

java.util.Date cloning error #118

lsliwko opened this issue May 27, 2022 · 2 comments

Comments

@lsliwko
Copy link

lsliwko commented May 27, 2022

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

@fazaza
Copy link

fazaza commented Sep 9, 2022

any update ?

@omkar9999
Copy link

omkar9999 commented Dec 16, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants