Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-4221

Confirm that SocketStreamHelper static initializer is catching right exceptions

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Internal
    • Labels:
      None

      According to https://openjdk.java.net/jeps/403, on Java 17 access to jdk.net classes will throw an IllegalAccessError. The static initializer for SocketStreamHelper doesn't catch that exception. Instead it catches IllegalAccessException.

      We should confirm what exception is actually thrown on Java 17 when running a test program using the driver with --illegal-access=deny.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: