XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • None

    Description

      Class::newInstance is deprecated starting in Java 9 - https://bugs.openjdk.java.net/browse/JDK-6850612 - because it may throw undeclared checked exceptions. The suggested replacement is getDeclaredConstructor().newInstance(), which will wrap the checked exceptions in InvocationException.

      There's even an error-prone warning about it, we should promote that to error while we're fixing this.

      Attachments

        1. HBASE-20180.v3.patch
          29 kB
          Mike Drob
        2. HBASE-20180.v2.patch
          26 kB
          Mike Drob
        3. HBASE-20180.patch
          24 kB
          Mike Drob

        Activity

          People

            mdrob Mike Drob
            mdrob Mike Drob
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: