Weird Issue with NetBeans 6.5, Compile on Save, and uncompilable source code

Discussion in 'Mac Programming' started by wrldwzrd89, Mar 3, 2009.

  1. macrumors G4

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #1
    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:
    Code:
    java.lang.ExceptionInInitializerError
    	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.
     
  2. thread starter macrumors G4

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #2
    Weird. Time seems to have caused this problem to fix itself.
     

Share This Page