Menu

#9 Last unconquered HAnim1 LOA3 file (code too large).

3.x
open
None
2022-01-16
2022-01-16
No

This appears to be the last file in my collection that does not conquer the "code too large" error: https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/java/net/coderextreme/data/HAnim1SpecificationLOA3Animation.java The .x3d file is in the X3D archives under HumanoidAnimation/Specifications.

Discussions about how to break the initialize() method into smaller pieces are welcome. Certainly it's feasible, but I'm not sure about automation.

1 Attachments

Discussion

  • John W Carlson

    John W Carlson - 2022-01-16
    • summary: Last unconquered HAnim1 LOA3 file (code to large). --> Last unconquered HAnim1 LOA3 file (code too large).
     
  • John W Carlson

    John W Carlson - 2022-01-16
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,3 +1,3 @@
     This appears to be the last file in my collection that does not conquer the "code too large" error:  https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/java/net/coderextreme/data/HAnim1SpecificationLOA3Animation.java    The .x3d file is in the X3D archives under HumanoidAnimation/Specifications.
    
    -Discussions about how to break the initialize() method into smaller pieces are welcome.  Certainly it's feasible, but I'm not sure about animation.
    +Discussions about how to break the initialize() method into smaller pieces are welcome.  Certainly it's feasible, but I'm not sure about automation.
    
     
  • Don Brutzman

    Don Brutzman - 2022-01-16

    You can always check what I am seeing from the X3dToJava.xslt products by looking at

    Example excerpt:

    ===================================
    C:\x3d-code\www.web3d.org\x3d\content\examples\HumanoidAnimation/Characters//JinLOA4.x3d converted to JinLOA4.java
    Compiling 1 source file to C:\x3d-code\www.web3d.org\x3d\content\examples\HumanoidAnimation\classes
    C:\x3d-code\www.web3d.org\x3d\content\examples\HumanoidAnimation\Characters\JinLOA4.java:146: error: code too large
        public final void initialize()
                          ^
    1 error
    Compile failed; see the compiler error output for details.
    now run and validate the java model
    java -classpath classes;../../../stylesheets/java/jars/X3DJSAIL.4.0.full.jar HumanoidAnimation.Characters.JinLOA4
    Error: Could not find or load main class HumanoidAnimation.Characters.JinLOA4
    Caused by: java.lang.ClassNotFoundException: HumanoidAnimation.Characters.JinLOA4
    Java Result: 1
    ===================================
    

    Please look at some of the source produced by the stylesheet to see how I've subdivided large numeric arrays. This has fixed maybe 80% of the "code too large" problems. If you find different threshold settings or a different approach, please advise.

     

    Last edit: Don Brutzman 2022-01-16

Log in to post a comment.

MongoDB Logo MongoDB