*** groovy/lang/GroovyClassLoader.old Thu Feb 16 12:37:33 2006 --- groovy/lang/GroovyClassLoader.java Thu Feb 16 12:26:06 2006 *************** *** 567,579 **** if (cls!=null) { boolean recompile = false; if (getTimeStamp(cls) < Long.MAX_VALUE) { ! Class[] inters = cls.getInterfaces(); ! for (int i = 0; i < inters.length; i++) { ! if (inters[i].getName().equals(GroovyObject.class.getName())) { ! recompile=true; break; } ! } } preferClassOverScript |= cls.getClassLoader()==this; --- 567,584 ---- if (cls!=null) { boolean recompile = false; if (getTimeStamp(cls) < Long.MAX_VALUE) { ! for (Class checkClass = cls; checkClass != null; checkClass = checkClass.getSuperclass()) { ! Class[] inters = checkClass.getInterfaces(); ! for (int i = 0; i < inters.length; i++) { ! if (inters[i].getName().equals(GroovyObject.class.getName())) { ! recompile=true; ! break; ! } ! } ! if (recompile) { break; } ! } } preferClassOverScript |= cls.getClassLoader()==this;