Skip to content

chore: register enum traits for marshalling round-trip#37

Merged
deer merged 2 commits intomainfrom
enum_trait_marshall_test
Apr 16, 2026
Merged

chore: register enum traits for marshalling round-trip#37
deer merged 2 commits intomainfrom
enum_trait_marshall_test

Conversation

@deer
Copy link
Copy Markdown
Collaborator

@deer deer commented Apr 16, 2026

Adds Marshalling.registerEnum static initializers to all enum Trait implementations across codemodel-foundation, objectoriented-codemodel, and jdk-codemodel, fixing silent trait loss during marshal/unmarshal. Previously, AbstractTraitable.destructor filtered out enum traits because isMarshallable returned false for enums (no @Marshal/@Unmarshal methods). Also adds a regression test asserting AccessModifier and Classification survive a full round-trip.
Requires Workday/base.build#42.

@deer deer merged commit 465208f into main Apr 16, 2026
1 check passed
@deer deer deleted the enum_trait_marshall_test branch April 16, 2026 11:29
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.

1 participant