eclipse-vertx / eclipse-vertx/vertx-codegen

For dataobject type, provide a method telling whether object has empty parameter constructor?

Open
#151 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
111
Forks
88
PR merge metrics
No merged PRs in 30d

Description

Hi:

For current dataobject type, the minimum requirement is to provide json constructor
but there is no way for generator to know whether empty constructor is supported
It could be useful since for most dataobject, empty parameters constructor bring us convenience
If we generate all dataobject with empty constructor, the test will fail
since there is DataObjectWithOnlyJsonObjectConstructor and could not mapped to any constructor

Hope it helps

Contributor guide

Open the contributing guide

Research direction

Start by reading the dataobject type metadata and the generator logic that decides which constructors can be mapped. Use DataObjectWithOnlyJsonObjectConstructor as the failure case and trace the related tests. Done means the type exposes whether an empty-parameter constructor is supported and generation no longer assumes one exists.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.