Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-1364

Simplify code: remove Java 8 workarounds, reflection and compatibility paths

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0
    • Other
    • None

    Description

      With a single compilation target, the compatibility layers can go.

      • Replace Class.forName presence checks for optional dependencies (slf4j in Loggers, AWS SDK in AwsIamCredentialPlugin) with ServiceLoader or requires static module resolution where possible.
      • Use switch expressions, records for immutable value holders (host addresses, prepare results, column definitions), text blocks in tests, String.repeat, List.of / Map.of, Stream.toList(), and InputStream.readNBytes / transferTo in the stream classes.
      • Replace hand-rolled utilities that now exist in the JDK.
      • Review all @SuppressWarnings and -Xlint exclusions kept for Java 8.

      Attachments

        Issue Links

          Activity

            People

              diego dupin Diego Dupin
              diego dupin Diego Dupin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.