[jbosstools-commits] JBoss Tools SVN: r36044 - trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Thu Oct 27 08:33:22 EDT 2011


Author: dgeraskov
Date: 2011-10-27 08:33:21 -0400 (Thu, 27 Oct 2011)
New Revision: 36044

Modified:
   trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java
Log:
Do not reset already built configuration

Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java	2011-10-27 11:17:00 UTC (rev 36043)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java	2011-10-27 12:33:21 UTC (rev 36044)
@@ -139,13 +139,12 @@
 		//the class loader caches user's compiled classes
 		//need to rebuild it on every console configuration rebuild to pick up latest versions.
 		final URL[] customClassPathURLs = PreferencesClassPathUtils.getCustomClassPathURLs(prefs);
-		//we could call cleanUpClassLoader() here if we don't want to release configuration field
-		//but in case user changed java sources it is not in a good state any more, so call reset.
-		reset();
+		cleanUpClassLoader();
 		classLoader = createClassLoader(customClassPathURLs);
 	}
 
 	public void build() {
+		reset();
 		configuration = buildWith(null, true);
 		fireConfigurationBuilt();
 	}



More information about the jbosstools-commits mailing list