Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BE27C200D0E for ; Mon, 11 Sep 2017 13:26:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BCD8B1609C4; Mon, 11 Sep 2017 11:26:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0F77E1609C6 for ; Mon, 11 Sep 2017 13:26:03 +0200 (CEST) Received: (qmail 29914 invoked by uid 500); 11 Sep 2017 11:26:03 -0000 Mailing-List: contact commits-help@beam.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.apache.org Delivered-To: mailing list commits@beam.apache.org Received: (qmail 29871 invoked by uid 99); 11 Sep 2017 11:26:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Sep 2017 11:26:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 91C9A1A349D for ; Mon, 11 Sep 2017 11:26:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id JcfhjPbNcRWx for ; Mon, 11 Sep 2017 11:26:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 5C5405F5B3 for ; Mon, 11 Sep 2017 11:26:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id AE391E01D8 for ; Mon, 11 Sep 2017 11:26:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 67FF424147 for ; Mon, 11 Sep 2017 11:26:00 +0000 (UTC) Date: Mon, 11 Sep 2017 11:26:00 +0000 (UTC) From: "Stas Levin (JIRA)" To: commits@beam.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (BEAM-2872) AvroIO.TypedWrite#to() method produces a compilation error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 11 Sep 2017 11:26:04 -0000 [ https://issues.apache.org/jira/browse/BEAM-2872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16161102#comment-16161102 ] Stas Levin edited comment on BEAM-2872 at 9/11/17 11:25 AM: ------------------------------------------------------------ [~reuvenlax] I was able to make this error go away by setting the project's SDK to JDK 1.8 in the IDE. If I set it back to 1.7 the error returns. This behavior is consistent with the earlier findings where it compiled fine using maven with the env's JDK set to 1.8 and failed to compile with the env's JDK set to 1.7. This leads me to believe people who have JDK 1.7 set as their default JDK will not be able to successfully compile Beam at the moment. was (Author: staslev): [~reuvenlax] I was able to make this error go away by setting the project's SDK to JDK 1.8 in the IDE. If I set it back to 1.7 the error returns. This behavior is consistent with the earlier findings where it compiled fine using maven with the env's JDK set to 1.8 and failed to compile with the env's JDK set to 1.7. This leads me to believe people with JDK 1.7 will not be able to successfully compile Beam at the moment. > AvroIO.TypedWrite#to() method produces a compilation error > ---------------------------------------------------------- > > 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 when compiled using IntelliJ's {{Rebuild Project}} command, or when compiling with maven under {{Java 1.7}}: > {code:java} > @Experimental(Kind.FILESYSTEM) > public TypedWrite to( > DynamicAvroDestinations dynamicDestinations) { > return toBuilder() > .setDynamicDestinations((DynamicAvroDestinations) dynamicDestinations) > .build(); > } > {code} > {code} > Error:(999, 17) java: incompatible types > required: org.apache.beam.sdk.io.AvroIO.TypedWrite > found: org.apache.beam.sdk.io.AvroIO.TypedWrite > {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 (v6.4.14#64029)