[
https://issues.apache.org/jira/browse/BEAM-10265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17148768#comment-17148768
]
Brian Hulette commented on BEAM-10265:
--------------------------------------
I think there are two actions here:
* Add support for recursive Beam schemas (this is a large issue, there may
already be a Jira for it, or there should be)
* Fail early with a better error message. I think that should be the action
for this ticket
> POJO which has self in message causes ProtoMessageSchema().schemaFor to
> stackoverflow
> -------------------------------------------------------------------------------------
>
> Key: BEAM-10265
> URL: https://issues.apache.org/jira/browse/BEAM-10265
> Project: Beam
> Issue Type: New Feature
> Components: sdk-java-core
> Affects Versions: 2.21.0
> Reporter: Reza ardeshir rokni
> Priority: P3
>
> Proto:
> message TSFoo {
> string a = 1;
> string b = 2;
> TSFoo theOlderMe = 3;
> }
> new ProtoMessageSchema().schemaFor(TypeDescriptor.of(Foo.TSFoo.class));
> Causes a stackoverflow.
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)