JNI local refs exceeds capacity warning in NetworkInterface::getAll

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 20
    • Affects Version/s: 8, 11, 17, 20
    • Component/s: core-libs
    • b18
    • windows

      JDK-8187450 half-fixed the issue on Windows; the warning is now absent when running with -Djava.net.preferIPv4Stack=true, but still present otherwise.

      Example test output from test\jdk\java\net\NetworkInterface\Test.java:

      WARNING: JNI local refs: 33, exceeds capacity: 32
      at java.net.NetworkInterface.getAll(java.base@20-internal/Native Method)
      at java.net.NetworkInterface.getNetworkInterfaces(java.base@20-internal/NetworkInterface.java:353)
      at Test.main(Test.java:42)
      ...

            Assignee:
            Daniel Jelinski
            Reporter:
            Daniel Jelinski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: