[jira] [Commented] (BEAM-10199) AutoValue Schema unable to work with auto-value-gson-annotations objects

2022-06-04 Thread Danny McCormick (Jira)


[ 
https://issues.apache.org/jira/browse/BEAM-10199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17548566#comment-17548566
 ] 

Danny McCormick commented on BEAM-10199:


This issue has been migrated to https://github.com/apache/beam/issues/20197

> AutoValue Schema unable to work with auto-value-gson-annotations objects
> 
>
> Key: BEAM-10199
> URL: https://issues.apache.org/jira/browse/BEAM-10199
> Project: Beam
>  Issue Type: Bug
>  Components: sdk-java-core
>Affects Versions: 2.21.0
>Reporter: Reza ardeshir rokni
>Priority: P3
>  Labels: Clarified
>
> Objects created with the extension :
> com.ryanharter.auto.value:auto-value-gson-annotations:0.8.0
> Fail with NPE in Java pipelines.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)


[jira] [Commented] (BEAM-10199) AutoValue Schema unable to work with auto-value-gson-annotations objects

2020-06-04 Thread Reza ardeshir rokni (Jira)


[ 
https://issues.apache.org/jira/browse/BEAM-10199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17126261#comment-17126261
 ] 

Reza ardeshir rokni commented on BEAM-10199:


FYI [~reuvenlax],

> AutoValue Schema unable to work with auto-value-gson-annotations objects
> 
>
> Key: BEAM-10199
> URL: https://issues.apache.org/jira/browse/BEAM-10199
> Project: Beam
>  Issue Type: New Feature
>  Components: sdk-java-core
>Affects Versions: 2.21.0
>Reporter: Reza ardeshir rokni
>Priority: P2
>
> Objects created with the extension :
> com.ryanharter.auto.value:auto-value-gson-annotations:0.8.0
> Fail with NPE in Java pipelines.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (BEAM-10199) AutoValue Schema unable to work with auto-value-gson-annotations objects

2020-06-04 Thread Reza ardeshir rokni (Jira)


[ 
https://issues.apache.org/jira/browse/BEAM-10199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17126260#comment-17126260
 ] 

Reza ardeshir rokni commented on BEAM-10199:


The GSON autovalue object actually extends a base object, the base object looks 
like the normal AutoValue generated object...
 
>From ErrorMsg class we get:
 
abstract class $AutoValue_ErrorMsg extends ErrorMsg 
 
And then:

final class AutoValue_ErrorMsg extends $AutoValue_ErrorMsg 
 
So this line of code in the Beam utils, wont work...:

return baseName.startsWith("AutoValue_") ? clazz.getSuperclass() : clazz;

> AutoValue Schema unable to work with auto-value-gson-annotations objects
> 
>
> Key: BEAM-10199
> URL: https://issues.apache.org/jira/browse/BEAM-10199
> Project: Beam
>  Issue Type: New Feature
>  Components: sdk-java-core
>Affects Versions: 2.21.0
>Reporter: Reza ardeshir rokni
>Priority: P2
>
> Objects created with the extension :
> com.ryanharter.auto.value:auto-value-gson-annotations:0.8.0
> Fail with NPE in Java pipelines.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)