If a file in a DrJava project has a package designation that does not match its actual directory location, DrJava will compile the project with no error, but will hang (forever hourglass) when "Test Project" is clicked.
This is a holdover from the pre-project days of DrJava when it could open and compile individual files that were on separate directory trees. DrJava still tries to resolve the package directories separately for each file and thus will compile, without error, a situation where a file is in an incorrect physical directory for its specified package. However, the JUnit subsystem will not tolerate this and will hang.
Resolution suggestion: remove DrJava's latent ability to compile individual files on different physical source trees. From a pedagogical standpoint, this feature is completely unnecessary and since mislabeling the package name is a common mistake by beginning students, all this feature does is cause problems because DrJava does not currently catch this error.
Log in to post a comment.