You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Ismaël Mejía (JIRA)" <ji...@apache.org> on 2018/01/26 09:46:00 UTC

[jira] [Resolved] (BEAM-2872) AvroIO.TypedWrite#to() method produces a compilation error under JDK 1.7

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

Ismaël Mejía resolved BEAM-2872.
--------------------------------
       Resolution: Invalid
    Fix Version/s: 2.3.0

Closing this one because of the move to Java 8 in Beam 2.3.0

> AvroIO.TypedWrite#to() method produces a compilation error under JDK 1.7
> ------------------------------------------------------------------------
>
>                 Key: BEAM-2872
>                 URL: https://issues.apache.org/jira/browse/BEAM-2872
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-java-core
>    Affects Versions: 2.2.0
>            Reporter: Stas Levin
>            Assignee: Reuven Lax
>            Priority: Major
>             Fix For: 2.3.0
>
>
> The following code produces a compilation error when compiled using IntelliJ's {{Rebuild Project}} command, or when compiling with maven under {{Java 1.7}}:
> {code:java}
> @Experimental(Kind.FILESYSTEM)
>     public <NewDestinationT> TypedWrite<UserT, NewDestinationT, OutputT> to(
>         DynamicAvroDestinations<UserT, NewDestinationT, OutputT> dynamicDestinations) {
>       return toBuilder()
>           .setDynamicDestinations((DynamicAvroDestinations) dynamicDestinations)
>           .build();
>     }
> {code}
> {code}
> Error:(999, 17) java: incompatible types
>   required: org.apache.beam.sdk.io.AvroIO.TypedWrite<UserT,NewDestinationT,OutputT>
>   found:    org.apache.beam.sdk.io.AvroIO.TypedWrite<UserT,DestinationT,OutputT>
> {code}
> Note: setting the environment to {{Java 1.8}} and compiling with maven does not produce this error.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)