beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stas Levin (JIRA)" <>
Subject [jira] [Created] (BEAM-2872) AvroIO.TypedWrite#to() method produces a compilation error in IntelliJ (2017.3)
Date Sun, 10 Sep 2017 07:43:00 GMT
Stas Levin created BEAM-2872:

             Summary: AvroIO.TypedWrite#to() method produces a compilation error in IntelliJ
                 Key: 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):

    public <NewDestinationT> TypedWrite<UserT, NewDestinationT, OutputT> to(
        DynamicAvroDestinations<UserT, NewDestinationT, OutputT> dynamicDestinations)
      return toBuilder()
          .setDynamicDestinations((DynamicAvroDestinations) dynamicDestinations)

Error:(999, 17) java: incompatible types

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

View raw message