View Full Version : Weird Issue with NetBeans 6.5, Compile on Save, and uncompilable source code

Mar 3, 2009, 06:59 PM
For some odd reason, if I turn on Compile on Save for my project and all the projects it requires, then attempt to run it, it immediately crashes with this error:

at net.worldwizard.fantastle.generic.MazeObjectList.<init>(MazeObjectList.java:32)
at net.worldwizard.fantastle.game.Inventory.<init>(Inventory.java:40)
at net.worldwizard.fantastle.game.GameManager.setUpGUI(GameManager.java:1284)
at net.worldwizard.fantastle.game.GameManager.<init>(GameManager.java:97)
at net.worldwizard.fantastle.Application.<init>(Application.java:56)
at net.worldwizard.fantastle.Fantastle.main(Fantastle.java:57)
Caused by: java.lang.RuntimeException: Uncompilable source code - net.worldwizard.fantastle.objects.SunkenBlock is not abstract and does not override abstract method getDescription() in net.worldwizard.fantastle.generic.MazeObject
at net.worldwizard.fantastle.generic.GenericGround.<clinit>(GenericGround.java:23)
... 6 more

The SunkenBlock class DOES in fact define getDescription so this message is erroneous. The only way I can find around this issue is to turn off Compile on Save for the main project - then, it compiles and runs without issue.

Mar 6, 2009, 10:42 AM
Weird. Time seems to have caused this problem to fix itself.