jMonkeyEngine / jMonkeyEngine/jmonkeyengine
Possible issue when writing spatials that have lists as userdata
Open
@riccardobl is already working on this.
Since Feb 11, 2026.
bug
Needs investigation
- Dominant language
- Java
- Stars
- 4.3k
- Forks
- 1.2k
- Avg merge
- 4d 7h
- Merged PRs (30d)
- 14
Description
I wrote an unit test for this pr: https://github.com/jMonkeyEngine/jmonkeyengine/pull/2093 and i've discovered a possible issue in the serialization of user data (that is unrelated to the PR).
You can reproduce it by setting testLists=true in the unit test:
https://github.com/jMonkeyEngine/jmonkeyengine/blob/master/jme3-plugins/src/test/java/com/jme3/export/JmeExporterTest.java#L139-L239
and then run ./gradlew test
It will fail with this log:
com.jme3.export.JmeExporterTest > testExporterConsistency[0] FAILED
java.lang.AssertionError: Value does not match in map 1 for key int-list expected [1, 2, 3] but got null
at org.junit.Assert.fail(Assert.java:89)
at org.junit.Assert.assertTrue(Assert.java:42)
at com.jme3.export.JmeExporterTest.compareMaps(JmeExporterTest.java:260)
at com.jme3.export.JmeExporterTest.testExporterConsistency(JmeExporterTest.java:238)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.