Skip to content

expand j3o scanner baseline#2734

Merged
riccardobl merged 1 commit into
jMonkeyEngine:masterfrom
riccardobl:j3ob
May 1, 2026
Merged

expand j3o scanner baseline#2734
riccardobl merged 1 commit into
jMonkeyEngine:masterfrom
riccardobl:j3ob

Conversation

@riccardobl
Copy link
Copy Markdown
Member

No description provided.

@riccardobl riccardobl merged commit 918b984 into jMonkeyEngine:master May 1, 2026
7 checks passed
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the J3OScanner to output unsafe reports to standard output and adds a note regarding the baseline's scope. It also significantly expands the j3o-baseline.txt file. Feedback highlights an incorrect package path for StructStd140BufferObject and notes that several added math classes are redundant as they do not implement the Savable interface.

com.jme3.texture.TextureArray
com.jme3.texture.TextureCubeMap
com.jme3.ui.Picture
com.jme3.util.struct.StructStd140BufferObject
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The package for StructStd140BufferObject is incorrect. In jMonkeyEngine, this class is located in com.jme3.shader.bufferobject, not com.jme3.util.struct. This will cause false positives when scanning J3O files that contain this class.

com.jme3.shader.bufferobject.StructStd140BufferObject

Comment on lines +141 to +155
com.jme3.math.Line
com.jme3.math.LineSegment
com.jme3.math.Matrix3f
com.jme3.math.Matrix4f
com.jme3.math.Plane
com.jme3.math.Quaternion
com.jme3.math.Ray
com.jme3.math.Rectangle
com.jme3.math.Ring
com.jme3.math.Spline
com.jme3.math.Transform
com.jme3.math.Triangle
com.jme3.math.Vector2f
com.jme3.math.Vector3f
com.jme3.math.Vector4f
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Several added math classes (e.g., Line, LineSegment, Matrix3f, Matrix4f, Plane, Ray, Rectangle, Ring, Triangle, Vector4f) do not implement the com.jme3.export.Savable interface. Since the J3O class table only contains classes of Savable objects stored in the file, these entries are redundant and will never be matched by the scanner. Only Spline and Transform in this range are Savable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant