Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-4329 13 Unit tests are failing with JDK 8
  3. DRILL-4333

tests in Drill2489CallsAfterCloseThrowExceptionsTest fail in Java 8

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.13.0
    • Tools, Build & Test
    • None

    Description

      The following tests fail in Java 8:

      Drill2489CallsAfterCloseThrowExceptionsTest.testClosedPlainStatementMethodsThrowRight
      Drill2489CallsAfterCloseThrowExceptionsTest.testclosedPreparedStmtOfOpenConnMethodsThrowRight
      Drill2489CallsAfterCloseThrowExceptionsTest.testClosedResultSetMethodsThrowRight1
      Drill2489CallsAfterCloseThrowExceptionsTest.testClosedResultSetMethodsThrowRight2
      Drill2489CallsAfterCloseThrowExceptionsTest.testClosedDatabaseMetaDataMethodsThrowRight
      Drill2769UnsupportedReportsUseSqlExceptionTest.testPreparedStatementMethodsThrowRight
      Drill2769UnsupportedReportsUseSqlExceptionTest.testPlainStatementMethodsThrowRight
      

      Drill has special implementations of Statement, PreparedStatement, ResultSet and DatabaseMetadata that overrides all parent methods to make sure they throw a proper exception if the statement has already been closed.
      These tests use reflection to make sure all methods behave correctly, but Java 8 added more methods that need to be properly overridden.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              adeneche Abdel Hakim Deneche
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: