Skip to content

Make the library work under java 17 #15

@taojing2002

Description

@taojing2002

When I ran the command of mvn clean test and the java home was 17, I got 35 errors. However, after switching to java 1.8, it was much better. Metacat is currently required to java 17, so it is better to make this library support java 17.
One example of the errors is:

Test set: edu.ucsb.nceas.osti_elink.OSTIElinkErrorAgentTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.003 s <<< FAILURE! - in edu.ucsb.nceas.osti_elink.OSTIElinkErrorAgentTest
edu.ucsb.nceas.osti_elink.OSTIElinkErrorAgentTest.testNotify  Time elapsed: 0 s  <<< ERROR!
java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.util.Map java.util.Collections$UnmodifiableMap.m accessible: module java.base does not "opens java.util" to unnamed module @4bd4bcd4

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