views:

86

answers:

1

Im using Java-FX pre-release SDK, and Im getting a compilation error:

D:\...\src\javafxapplicationmousetest\Main.fx:38: cannot find symbol
symbol  : method get$nodesList()
location: interface javafxapplicationmousetest.Main$Intf
var nodesList:Node[] = [
1 error
BUILD FAILED (total time: 0 seconds)


var nodesList:Node[] = [
    Rectangle { x: 0, y: 0, width: width, height: height, fill: Color.WHITE } 
]on replace oldValues[lo..hi] = newValues{
    java.lang.System.out.println("replaced");
};

Any ideas why this might be? If I remove the "on replace" trigger, it compiles... Im sure its just something small but I cant figure it out.

A: 

I found it, the error was a bit miss leading, but it was the actual location of where i defined the list that was the issue. Other classes where trying to access it when they couldn't see it.

Mark