Skip to content

com.sun.jna.NativeLibraryTest fails on macOS 12 (Monterey) #1423

Closed
@ezarko

Description

@ezarko
  1. Version of JNA and related jars
    0774f82 master
  2. Version and vendor of the java virtual machine
    java 17.0.2 2022-01-18 LTS
    Java(TM) SE Runtime Environment (build 17.0.2+8-LTS-86)
    Java HotSpot(TM) 64-Bit Server VM (build 17.0.2+8-LTS-86, mixed mode, sharing)
  3. Operating system
    macOS Monterey 12.2.1 (21D62)
  4. System architecture (CPU type, bitness of the JVM)
    Apple M1 Pro
  5. Complete description of the problem
    [junit] Testsuite: com.sun.jna.NativeLibraryTest
    [junit] Tests run: 22, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 7.21 sec
    [junit]
    [junit] Testcase: testAvoidDuplicateLoads(com.sun.jna.NativeLibraryTest): FAILED
    [junit] Library should be newly loaded after explicit dispose of all native libraries expected:<1> but was:<10>
    [junit] junit.framework.AssertionFailedError: Library should be newly loaded after explicit dispose of all native libraries expected:<1> but was:<10>
    [junit] at com.sun.jna.NativeLibraryTest.testAvoidDuplicateLoads(NativeLibraryTest.java:91)
    [junit] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [junit] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    [junit] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [junit]
    [junit]
    [junit] Test com.sun.jna.NativeLibraryTest FAILED
  6. Steps to reproduce
    ant

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