Skip to content

JME serialization does not work with protected/private constructors #1119

@Ali-RS

Description

@Ali-RS

We should fix JME serialization to work with protected/private constructors. Of course, that probably requires special dispensation in Java 11.

We just have to use reflection to grab the no-arg constructor and make setAccessible(true) or whatever.

Links to the forum page in case:
https://hub.jmonkeyengine.org/t/jme-serialization-does-not-work-with-protected-private-constructor/41946
https://hub.jmonkeyengine.org/t/solved-need-help-with-triplanar-texturing-on-a-box/41940/24?u=ali_rs

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions