[
https://issues.apache.org/jira/browse/BEAM-2872?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stas Levin reassigned BEAM-2872:
--------------------------------
Assignee: Reuven Lax (was: Kenneth Knowles)
> AvroIO.TypedWrite#to() method produces a compilation error in IntelliJ
> (2017.3)
> -------------------------------------------------------------------------------
>
> 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
>
> The following code produces a compilation error in the IntelliJ IDE (but not
> in maven):
> {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}
> Environment details:
> * IntelliJ IDEA 2017.3 EAP (Community Edition)
> * Build #IC-173.2099.14, built on September 6, 2017
> * JRE: 1.8.0_152-release-915-b11 x86_64
> * JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
> * Mac OS X 10.10.5
> While this code compiles using maven, it would be great if it also compiled
> in the IDE where we all spend a great portion of our lives (at least for now).
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)