palantir / palantir/conjure-java
Enum visitor builders do not compile with UNKNOWN member
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 39
- Forks
- 49
- Avg merge
- 8h 22m
- Merged PRs (30d)
- 32
Description
What happened?
When an enum has a member called UNKNOWN, the resulting code contains two interfaces called UnknownStageVisitorBuilder, which fails to compile. I believe this is the same as #2100, but for UNKNOWN instead of COMPLETED.
What did you want to happen?
No compile errors.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named. Start by comparing the UNKNOWN case with #2100 and tracing the enum visitor builder generation; reproduce the generated output for an enum containing UNKNOWN. Done means the generated code has no duplicate UnknownStageVisitorBuilder interfaces and compiles successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100