Skip to content

Potential JavaMembers deserialisation problem. #2248

@aardvark179

Description

@aardvark179

Because NativeJavaObject recreates its JavaMembers on deserialisation, and because JavaMembers itself can lookup function prototypes dynamically, there is the potential for it all to go very wrong by causing that part of an object graph to be deserialised before enough of the top level scope has been recreated for the prototype to actually be looked up.

I stumbled across this in my scopes refactoring, and I think the only way to resolve this properly is by serialising most of java members so that nothing is looked up dynamically in scopes.

Have I ever mentioned that I hate Java serialisation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions