Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8190759

a jdbc auto load driver bug

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      os_x

      Description

      FULL PRODUCT VERSION :
      java version "1.7.0_80"
      Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
      Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      macOS Sierra 10.12.2

      A DESCRIPTION OF THE PROBLEM :
      In java.sql.DriverManager.loadInitialDrivers()

      ...
       try{
                          while(driversIterator.hasNext()) {
                              driversIterator.next();
                          }
                      } catch(Throwable t) {
                      // Do nothing
                      }
      ...
      When the load multiple drivers, but one loading failure.Thery are no exception log.

      eg.
      env:jdk7、macOS
      I want to load driver: mysql-connector-java-5.1.30.jar and postgresql-42.1.3.jar
      This case cannot be loaded postgresql-42.1.3.jar,because the postgresql-42.1.3.jar is compiled using jdk8.but there are no exception log








      REPRODUCIBILITY :
      This bug can be reproduced always.

        Attachments

          Activity

            People

            Assignee:
            psonal Pallavi Sonal (Inactive)
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: