jMonkeyEngine / jMonkeyEngine/jmonkeyengine

Possible issue when writing spatials that have lists as userdata

Open
#2,108 0 comments 1 reaction 2 assignees View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.