Skip to content

Conversation

Copy link

Copilot AI commented Feb 11, 2026

Line 356 was using Serializable.class (the annotation) instead of java.io.Serializable.class (the interface) in an isAssignableFrom() check.

Changes:

  • Changed Serializable.class.isAssignableFrom(cls) to java.io.Serializable.class.isAssignableFrom(cls) on line 356

This aligns with line 357's return statement which already correctly references java.io.Serializable.class.

// Before
if (Serializable.class.isAssignableFrom(cls)) { 
    return getExactSerializerRegistration(java.io.Serializable.class);
}

// After
if (java.io.Serializable.class.isAssignableFrom(cls)) { 
    return getExactSerializerRegistration(java.io.Serializable.class);
}

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dl.google.com
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED -XX:MaxMetaspaceSize=384m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /home/REDACTED/.gradle/wrapper/dists/gradle-8.8-bin/dl7vupf4psengwqhwktix4v1/gradle-8.8/lib/gradle-launcher-8.8.jar -javaagent:/home/REDACTED/.gradle/wrapper/dists/gradle-8.8-bin/dl7vupf4psengwqhwktix4v1/gradle-8.8/lib/agents/gradle-instrumentation-agent-8.8.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Possible mixed use of java.io.Serializable and com.jme3.network.serializing.Serializable in SpiderMonkey serializer</issue_title>
<issue_description>

i think this should be java.io.Serializable.class not Serializable (aka com.jme3.network.serializing.Serializable).</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…line 356

Co-authored-by: riccardobl <4943530+riccardobl@users.noreply.github.com>
@riccardobl riccardobl marked this pull request as ready for review February 11, 2026 19:37
Copilot AI changed the title [WIP] Fix mixed use of Serializable in SpiderMonkey serializer Fix type confusion in Serializer.getSerializerRegistration Feb 11, 2026
Copilot AI requested a review from riccardobl February 11, 2026 19:37
@github-actions
Copy link

🖼️ Screenshot tests have failed.

The purpose of these tests is to ensure that changes introduced in this PR don't break visual features. They are visual unit tests.

📄 Where to find the report:

  • Go to the (failed run) > Summary > Artifacts > screenshot-test-report
  • Download the zip and open jme3-screenshot-tests/build/reports/ScreenshotDiffReport.html

⚠️ If you didn't expect to change anything visual:
Fix your changes so the screenshot tests pass.

If you did mean to change things:
Review the replacement images in jme3-screenshot-tests/build/changed-images to make sure they really are improvements and then replace and commit the replacement images at jme3-screenshot-tests/src/test/resources.

If you are creating entirely new tests:
Find the new images in jme3-screenshot-tests/build/changed-images and commit the new images at jme3-screenshot-tests/src/test/resources.

Note; it is very important that the committed reference images are created on the build pipeline, locally created images are not reliable. Similarly tests will fail locally but you can look at the report to check they are "visually similar".

See https://github.com/jMonkeyEngine/jmonkeyengine/blob/master/jme3-screenshot-tests/README.md for more information

Contact @richardTingle (aka richtea) for guidance if required

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.

Possible mixed use of java.io.Serializable and com.jme3.network.serializing.Serializable in SpiderMonkey serializer

2 participants