Since you have all the required files already present in the classpath /home/myself/Release1, when you compile the file present in release2, it looks for the necessary files in the classpath and since they are present in Release1 in the classpath, it uses them to compile your file in Release2.
Remove the Release1 from your directory and it will not compile, unless all your files are not present in the current directory.
Hope it helps,
thanks,
Preetham.