Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-2024

JDBC Driver registry does not unregister properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 7.1.0.Beta1
    • 7.1.0.Alpha1
    • JCA
    • None

    Description

      org.jboss.as.connector.registry.DriverRegistryImpl in as7 trunk
      I think line 62 is a copy/paste bug:

      DriverRegistryImpl.java
       
      @Override
          public void unregisterInstalledDriver(InstalledDriver driver) {
              if (driver == null)
                  throw new IllegalArgumentException(MESSAGES.nullVar("driver"));
      
              DEPLOYMENT_CONNECTOR_REGISTRY_LOGGER.tracef("Removing deployment: %s", driver);
      
              synchronized (drivers) {
                  drivers.put(driver.getDriverName(), driver);
              }
      
          }
      

      should be

      DriverRegistryImpl.java
       
      @Override
          public void unregisterInstalledDriver(InstalledDriver driver) {
              if (driver == null)
                  throw new IllegalArgumentException(MESSAGES.nullVar("driver"));
      
              DEPLOYMENT_CONNECTOR_REGISTRY_LOGGER.tracef("Removing deployment: %s", driver);
      
              synchronized (drivers) {
                  drivers.remove(driver.getDriverName());
              }
      
          }
      

      Attachments

        Activity

          People

            smaestri@redhat.com Stefano Maestri
            ttarrant@redhat.com Tristan Tarrant
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: