<div><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="auto">(Ignore annotation note)</div><div dir="auto"><br></div><div dir="auto">From X3dToJava.xslt (Don’s generated Java)</div><div>=======================================================</div><div>$ javac -J-Xss1g -J-Xmx4g -cp /c/Users/john/pythonSAI/X3DJSAIL.4.0.full.jar net/x3djsonld/data/GrampsAnimations.java</div><div>Note: Annotation processing is enabled because one or more processors were found</div><div>  on the class path. A future release of javac may disable annotation processing</div><div>  unless at least one processor is specified by name (-processor), or a search</div><div>  path is specified (--processor-path, --processor-module-path), or annotation</div><div>  processing is enabled explicitly (-proc:only, -proc:full).</div><div>  Use -Xlint:-options to suppress this message.</div><div>  Use -proc:none to disable annotation processing.</div><div>net\x3djsonld\data\GrampsAnimations.java:76469: error: code too large</div><div>                private MFVec2f getTextureCoordinate_14_561_point()</div><div>                                ^</div><div>net\x3djsonld\data\GrampsAnimations.java:68: error: too many constants</div><div>public class GrampsAnimations</div><div>       ^</div><div>2 errors</div><div>===========================================================</div><div dir="auto">From JavaSerializer.js: (my generated Java)</div><div>===========================================================</div><div>john@DESKTOP-8OPL3IE MINGW64 ~/X3DJSONLD/src/main/java (master)</div><div>$ javac -J-Xss1g -J-Xmx4g -cp /c/Users/john/pythonSAI/X3DJSAIL.4.0.full.jar net/coderextreme/data/GrampsAnimations.java</div><div>Note: Annotation processing is enabled because one or more processors were found</div><div>  on the class path. A future release of javac may disable annotation processing</div><div>  unless at least one processor is specified by name (-processor), or a search</div><div>  path is specified (--processor-path, --processor-module-path), or annotation</div><div>  processing is enabled explicitly (-proc:only, -proc:full).</div><div>  Use -Xlint:-options to suppress this message.</div><div>  Use -proc:none to disable annotation processing.</div><div>net\coderextreme\data\GrampsAnimations.java:47: error: code too large</div><div>    public X3D initialize() {</div><div>               ^</div><div>1 error</div><div>============================================================</div><div dir="auto">It appears like I again have hit the limit on the size of the initialize method, which I thought I had conquered, a long time ago.  Probably by removing large files from the build, which I may do again.</div><div><br></div><div>The size of the initialize method in both cases is around 850 lines.  Ouch!</div><div><br></div><div>Ideas for splitting up this Java scenegraph/object model welcome.  My first idea is to split off ROUTEs and OrientationInterpolators, or combine children into array of children, instead of using addChild.</div><div>============================================================</div><div>There appear to be compilers that don't have this problem:</div><div><a href="https://stackoverflow.com/questions/43973395/java-code-too-large-for-oracles-javac-is-not-so-for-eclipse" target="_blank">Java: Code too large for Oracle's javac is not so for Eclipse - Stack Overflow</a><br></div><div><br></div><div>Source available on request.</div></div></div></div></div></div><div><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><div><br></div><div><br></div><div>John</div></div></div></div>
</div>
</div>