[GREENFOOT-412] Classes in a folder in the project hang Greenfoot
Steps to reproduce:
\- Take a project, such as Greeps (where this was initially observed) \- Make a copy of that folder, and put it inside the original (so you now have Greeps, with lots of Java files, and Greeps/Greeps with lots of Java files) \- Open the outer project, and click Compile.
Greenfoot will hang completely. I've traced the BlueJ side, at least, and it hangs in Bluej.deletegateClassEvent -- adding a debug statement revealed that event.getBClass().getName() was "Greeps.Earth", suggesting that it thinks the inner Greeps folder is a package. Presumably the Greenfoot side is then hanging while looking for this class (which exists, but doesn't have a "package Greeps" declaration), which locks up the whole system. Terminating the Greenfoot VM seems to reset the system into a working state thereafter, although I'm not 100% sure how.
This bug is to some extent a "don't do that", but Greenfoot at least shouldn't lock up in this circumstance.
Issue metadata
- Issue type: Bug
- Priority: Low