"code too large" error in Preview SDK for scene graph initialization
I have written an initial export from Inkscape SVG to a JavaFX class with a CustomNode create() method. This method has a scene graph which somewhat mirrors the SVG tree. My problem is that when the SVG image is of any size, the compiler reports "code too large" on the JavaFX method.
The problem is this: for JavaFX to be true to its design, it -must- allow scene graphs of any size to be described in purely declarative syntax, and there should be no artificial requirement to break them up into smaller pieces to make the compiler happy. I realize, of course, that Java methods have a bytecode limit, but this is JavaFX, not Java.
Would declaring the graph to be a "final" class member help? Or is this just a quirk of being an early preview?
This does not happen in the interpreter.
Thanks. Fun product, by the way!