]> source.dussan.org Git - sonarqube.git/commitdiff
My bad, fix merge
authorSimon Brandhof <simon.brandhof@gmail.com>
Tue, 24 Jul 2012 08:49:20 +0000 (10:49 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Tue, 24 Jul 2012 08:49:20 +0000 (10:49 +0200)
sonar-core/src/main/java/org/sonar/core/plugins/PluginClassloaders.java

index 90d42808000eb684a44c7b282a8e0ec36fb186fa..48e18678b2eaa4797a1d77f2e3e311038bbf1977 100644 (file)
@@ -134,10 +134,6 @@ public class PluginClassloaders {
       throw new SonarException("The plugin " + plugin.getKey() + " is not supported with Java " + SystemUtils.JAVA_VERSION_TRIMMED, e);
 
     } catch (Throwable e) {
-      // SONAR-3688
-      // Throwable is explicitely caught instead of Exception in order to log the plugins
-      // that are compiled for Java > 5. In such case java.lang.UnsupportedClassVersionError
-      // is raised. 
       throw new SonarException("Fail to build the classloader of " + plugin.getKey(), e);
     }
   }
@@ -162,10 +158,6 @@ public class PluginClassloaders {
       throw new SonarException("The plugin " + plugin.getKey() + " is not supported with Java " + SystemUtils.JAVA_VERSION_TRIMMED, e);
 
     } catch (Throwable e) {
-      // SONAR-3688
-      // Throwable is explicitely caught instead of Exception in order to log the plugins
-      // that are compiled for Java > 5. In such case java.lang.UnsupportedClassVersionError
-      // is raised. 
       throw new SonarException("Fail to extend the plugin " + plugin.getBasePlugin() + " for " + plugin.getKey(), e);
     }
   }
@@ -233,11 +225,7 @@ public class PluginClassloaders {
       throw new SonarException("The plugin " + plugin.getKey() + " is not supported with Java " + SystemUtils.JAVA_VERSION_TRIMMED, e);
 
     } catch (Throwable e) {
-      // SONAR-3688
-      // Throwable is explicitely caught instead of Exception in order to log the plugins
-      // that are compiled for Java > 5. In such case java.lang.UnsupportedClassVersionError
-      // is raised. 
-      throw new SonarException("Fail to load plugin " + metadata.getKey(), e);
+      throw new SonarException("Fail to load plugin " + plugin.getKey(), e);
     }
   }