Skip to content

InaccessibleObjectException while executing tests with JDK17 #149

Description

@nskshared

hi
We are getting below error while running our tests against POJO classes. Looks like they increased security levels in jdk17 hence its difficult to change access modifiers etc.

Please can you advise if there is any alternative for below issue.

Unable to make field private static final long java.time.LocalDate.serialVersionUID accessible: module java.base does not "opens java.time" to unnamed module @6be46e8f
java.lang.reflect.InaccessibleObjectException: Unable to make field private static final long java.time.LocalDate.serialVersionUID accessible: module java.base does not "opens java.time" to unnamed module @6be46e8f

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions