You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Stas Levin (JIRA)" <ji...@apache.org> on 2017/09/10 07:43:00 UTC

[jira] [Created] (BEAM-2872) AvroIO.TypedWrite#to() method produces a compilation error in IntelliJ (2017.3)

Stas Levin created BEAM-2872:
--------------------------------

             Summary: 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: Kenneth Knowles


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)