[ 
https://issues.apache.org/jira/browse/BEAM-394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ilya Ganelin updated BEAM-394:
------------------------------
    Description: 
[FindBugs 
SE_BAD_FIELD|https://github.com/apache/incubator-beam/blob/58a029a06aea1030279e5da8f9fa3114f456c1db/sdks/java/build-tools/src/main/resources/beam/findbugs-filter.xml#L30]:
 Non-transient non-serializable instance field in serializable class.

Applies to AvroCoder fields:
* decoder
* encoder
* reader
* writer
* schema

These should likely be marked transient and ensure they are properly 
initialized after deserialization.

This is a good starter bug. When fixing, please remove the corresponding 
entries from 
[findbugs-filter.xml|https://github.com/apache/incubator-beam/blob/master/sdks/java/build-tools/src/main/resources/beam/findbugs-filter.xml]
 and verify the build passes.

  was:
[FindBugs 
SE_BAD_FIELD|https://github.com/apache/incubator-beam/blob/58a029a06aea1030279e5da8f9fa3114f456c1db/sdks/java/build-tools/src/main/resources/beam/findbugs-filter.xml#L30]:
 Non-transient non-serializable instance field in serializable class.

Applies to AvroCoder fields:
* decoder
* encoder
* reader
* writer

These should likely be marked transient and ensure they are properly 
initialized after deserialization.

This is a good starter bug. When fixing, please remove the corresponding 
entries from 
[findbugs-filter.xml|https://github.com/apache/incubator-beam/blob/master/sdks/java/build-tools/src/main/resources/beam/findbugs-filter.xml]
 and verify the build passes.


> AvroCoder is Serializable with non-serializable fields
> ------------------------------------------------------
>
>                 Key: BEAM-394
>                 URL: https://issues.apache.org/jira/browse/BEAM-394
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-java-core
>            Reporter: Scott Wegner
>            Priority: Minor
>              Labels: findbugs, newbie, starter
>
> [FindBugs 
> SE_BAD_FIELD|https://github.com/apache/incubator-beam/blob/58a029a06aea1030279e5da8f9fa3114f456c1db/sdks/java/build-tools/src/main/resources/beam/findbugs-filter.xml#L30]:
>  Non-transient non-serializable instance field in serializable class.
> Applies to AvroCoder fields:
> * decoder
> * encoder
> * reader
> * writer
> * schema
> These should likely be marked transient and ensure they are properly 
> initialized after deserialization.
> This is a good starter bug. When fixing, please remove the corresponding 
> entries from 
> [findbugs-filter.xml|https://github.com/apache/incubator-beam/blob/master/sdks/java/build-tools/src/main/resources/beam/findbugs-filter.xml]
>  and verify the build passes.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to