Skip to content

Templated classes can't be deserialized #57

@Biotronic

Description

@Biotronic

Due to D's issue 2484, ClassInfo.find will return null for templated classes, and so Reflection.newInstance will do the same.

This could be fixed without waiting for a fix for druntime/dmd issue by keeping track of the classinfo whenever a templated class is registered with Orange, and looking up that info when Reflection.newInstance returns null.

This may be especially pertinent as there is a push to deprecate ClassInfo.find.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions