Bekreth / Bekreth/jetedge

Generating a POJO with a OffsetDateTime throws RuntimeException

Open
#153 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Hello,

Attempted to use your awesome lib, and don't know if it's a mistake from my end but don't know where i made a wrong turn.

## I read your documentation, but, despite you're incredible control of the English language and ability to converse about complex Java stuffs via sarcastic comments, I'm incapable of understanding how this thing should work.

Using version 0.9.0 and invoking as below:
```
private Customer createCustomer() {
PojoGenerator pojoGenerator = new PojoGeneratorBuilder<>(Customer.class).build();
return pojoGenerator.generatePojo();
}
```
Customer class has some inner classes and some primitive types.
After running the code it would break with a RuntimeException. Following the stack trace, here are the debug prints to help framing:
![2021-02-11_14-46-26](https://user-images.githubusercontent.com/7582777/107664387-455ae600-6c84-11eb-93eb-779fad862eea.png)
![2021-02-11_14-47-28](https://user-images.githubusercontent.com/7582777/107664356-3c6a1480-6c84-11eb-83e1-39ae56ecbb47.png)

Would love to help out or even push a PR, but would need to know where to start or the path to follow.

Ideas? If other version works, please share a guideline for me to try out if possible.

Thank you.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure with the PojoGeneratorBuilder example on version 0.9.0, focusing on the Customer class's inner classes, primitive types, and OffsetDateTime field. Inspect the linked stack-trace images to identify the failing generation path; done means generation no longer throws the reported RuntimeException.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.