You have this code in the "init()" function of the Room Extension:
Code: Select all
AirHockeyZoneExtension ext = (AirHockeyZoneExtension) getParentZone().getExtension();
According to Lapo, it is not possible to get the Zone Extension from the init() function of a Room Extension: viewtopic.php?t=20524 Even if we try to do the same thing later, it doesn't work because the Zone Extension and Room Extension are loaded by separate class loaders.
What's the correct way to handle this?