apache / apache/beam

JavaFieldSchema generates invalid code if class has a private constructor

Open
#20,428 0 comments 0 reactions 0 assignees View on GitHub
bug core java P3
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

Reported in [https://lists.apache.org/thread.html/r43d0bfe182c22813145cbce208c9bf5be66402fe023cc192dc23702b%40%3Cuser.beam.apache.org%3E](https://lists.apache.org/thread.html/r43d0bfe182c22813145cbce208c9bf5be66402fe023cc192dc23702b%40%3Cuser.beam.apache.org%3E)

Can be replicated by modifying SimplePOJO or NestedPOJO in JavaFieldSchemaTest to have a private constructor and running a test that exercises the setters.

Imported from Jira [BEAM-10372](https://issues.apache.org/jira/browse/BEAM-10372). Original Jira may contain additional context.
Reported by: bhulette.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.