I've tried on a different machine (still Win XP SP2) but with groovy 1.5.4. Here's the log:
d:\java\prj\groovy2063>dir
Il volume nell'unità D è Dati
Numero di serie del volume: AC19-9A14
Directory di d:\java\prj\groovy2063
11/02/2008 11.32 <DIR> .
11/02/2008 11.32 <DIR> ..
11/02/2008 11.28 <DIR> test
15/08/2007 23.53 388 TestReload.java
1 File 388 byte
3 Directory 51.310.034.944 byte disponibili
d:\java\prj\groovy2063>dir test
Il volume nell'unità D è Dati
Numero di serie del volume: AC19-9A14
Directory di d:\java\prj\groovy2063\test
11/02/2008 11.28 <DIR> .
11/02/2008 11.28 <DIR> ..
11/02/2008 11.28 81 Bar.groovy
11/02/2008 11.28 44 Foo.groovy
2 File 125 byte
2 Directory 51.310.034.944 byte disponibili
d:\java\prj\groovy2063>echo %CLASSPATH%
.;c:\java\thirdParty\groovy-1.5.4\embeddable\groovy-all-1.5.4.jar
d:\java\prj\groovy2063>c:\java\jdk1.5.0_09\bin\javac TestReload.java
d:\java\prj\groovy2063>c:\java\jdk1.5.0_09\bin\java TestReload
hello world 10
hello world 10
hello world 10
hello world 10
hello world 20 <-- Bar changed here (OK, taken)
hello world 20
hello world 20
hello world 20
hello world 20 <-- Foo changed here (OK, taken)
done
hello world 20
done
hello world 20
done
hello world 20 <-- Bar changed here (nothing happens!)
done
hello world 20
done
hello world 20
done
... <-- waited some times
hello world 20
done
hello world 20
done
hello world 30 <-- Foo changed here (now the changes of Bar have been taken)
done!
hello world 30
done!
hello world 30
done!
This behaviour is different from what I obtained before opening the issue, when even the first change of Bar was not taken, and I can't figure out why, but I will try again.
Paul, could you please do the test as I did?
Thank you
I have the same problem and looking for a solution I've found this issue. I've tried the testcase and it doesn't work. I tried with groovy 1.5.3 and jdk both 1.4.2_12 and jdk 1.5.0_06