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

Confirm that SocketStreamHelper static initializer is catching right exceptions

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Works as Designed
    • Icon: Unknown Unknown
    • None
    • None
    • Internal
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: