NetBeans 8.2 Patch 2 (Build 201705191307)
My package hierarchy is:
spider;
spider.ui;
spider.ui.output;
My classes w/functions are:
spider.ui.DisplayManager.stateMachine
spider.ui.output.DisplayManager.stateMachine
The duplication of class names and function names is deliberate. All stateMachine functions are static, that is,
public static stateMachine() { }
I attempt to reference the spider.ui.output.DisplayManager.stateMachine in the spider.ui.DisplayManager.stateMachine using:
import spider.ui.output.DisplayManager;
stateMachine() {
spider.ui.output.DisplayManager.stateMachine()
}
and get a "ui" variable not found.
Cannot find symbol
symbol: variable ui
location: variable spider of type JFrame
I would have expected that if there was an error it would be in using duplicate names not in identifying the "ui" in spider.ui.output.DisplayManager.stateMachine() as being wrong.
It is not a great labor to change the names so that they are unique, but can anyone tell me why I get the error message I do?