Skip to content

Fixed ClassCastException in RMI implementation. - #1195

Merged
Ali-RS merged 1 commit into
jMonkeyEngine:masterfrom
danielperano:master
Oct 6, 2019
Merged

Fixed ClassCastException in RMI implementation.#1195
Ali-RS merged 1 commit into
jMonkeyEngine:masterfrom
danielperano:master

Conversation

@danielperano

Copy link
Copy Markdown
Member

jME's RMI registry uses an internal SharedObject class to track
metadata about objects that have been shared. The problem is that when
you retrieve the shared object, the RMI implementation mistakenly
attempts to cast the SharedObject holder to the class of the actual
shared object. This PR fixes that bug by casting the actual shared
object instead of the SharedObject holder.

jME's RMI registry uses an internal SharedObject class to track
metadata about objects that have been shared. The problem is that when
you retrieve the shared object, the RMI implementation mistakenly
attempts to cast the SharedObject holder to the class of the actual
shared object. This PR fixes that bug by casting the actual shared
object instead of the SharedObject holder.
@riccardobl
riccardobl requested a review from pspeed42 October 4, 2019 15:29
@Ali-RS
Ali-RS merged commit f312608 into jMonkeyEngine:master Oct 6, 2019
@stephengold stephengold added this to the v3.3.0 milestone Mar 13, 2021
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.

3 participants