Permalink
Browse files

Merge branch '2.2.x'

  • Loading branch information...
2 parents ab4c99f + 382f187 commit 6d8593b805c6fb58e49a10e4c5e8e255abfc702d @jeffbrown jeffbrown committed Nov 15, 2012
@@ -20,6 +20,7 @@
import org.codehaus.groovy.grails.commons.ClassPropertyFetcher;
import org.codehaus.groovy.grails.compiler.GrailsProjectWatcher;
import org.springframework.beans.CachedIntrospectionResults;
+import java.beans.Introspector;
/**
* Reloading agent plugin for use with the GrailsPluginManager.
@@ -37,11 +38,7 @@ public void reloadEvent(String typename, Class<?> aClass, String encodedTimestam
CachedIntrospectionResults.clearClassLoader(aClass.getClassLoader());
ClassPropertyFetcher.clearClassPropertyFetcherCache();
if (GrailsProjectWatcher.isActive()) {
- try {
- Thread.sleep(2500); // wait for a bit, to reduce chance of any concurrent issues with the timing of the reload reflecting in the JVM
- } catch (InterruptedException e) {
- // ignore
- }
+ Introspector.flushFromCaches(aClass);
GrailsProjectWatcher.firePendingClassChangeEvents(aClass);
}
}

0 comments on commit 6d8593b

Please sign in to comment.