Skip to content

Native build causes error when initializing model classes #360

@petruki

Description

@petruki

Describe the bug
Latest versions are causing runtime error for native build applications.
The reason is that the API model classes now contain specific constructors causing the Unsafe reflection to not be able to register those classes.

Classes affected by this issue are: Group, Config, StrategyConfig and SwitcherElement from the com.switcherapi.client.model.criteria package

To Reproduce
Build application using native compilation

Expected behavior
Reflect metadata included to the library should provide details to the compiler so no error thrown during runtime.

Desktop (please complete the following information):

  • OS: any
  • Java version: Graal CE 23
  • Maven version: 3.9.9

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions