Return-Path: X-Original-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 94BCAD22F for ; Fri, 29 Jun 2012 18:02:27 +0000 (UTC) Received: (qmail 42147 invoked by uid 500); 29 Jun 2012 18:02:27 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 42087 invoked by uid 500); 29 Jun 2012 18:02:27 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 42075 invoked by uid 99); 29 Jun 2012 18:02:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jun 2012 18:02:26 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.160.48] (HELO mail-pb0-f48.google.com) (209.85.160.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jun 2012 18:02:19 +0000 Received: by pbbrq8 with SMTP id rq8so5794436pbb.35 for ; Fri, 29 Jun 2012 11:01:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer:x-gm-message-state; bh=5NspPTgrw69ZNF/VnmetuEx2QrwWSWde0vx4M5CjIlk=; b=Pspr4q6qnvOB9q6ar8rMqqHWygSlDTUGspy97U8dI0divpNVWA7f385FKaUWBry/tG O1GWmf/gU64YDgNNihxQ8tclBpKPyt9c/V3hXe541eUrAtWfOIqvNBLxAqpRgA9swkuM UD1IPbwI7WM6p7hU2uQ9QTR86PTDPEYE4jfwE74ambFJHjmJEhnVNrzT98iDEF+2gF4X Nt5EgaC+xh/XhkwhF4tda+YZV+edj7tuwV709BUfgVEE06pHkOYOcWH09JBA3zRAqQCz VHSdx+M1jTbqNTqEmEX3Ju84wMjsIo7RyKGRBsZF/8h/ptNVwxM8Flmjgl6zIpn0d4H8 XQLQ== Received: by 10.68.239.103 with SMTP id vr7mr8882322pbc.0.1340992917529; Fri, 29 Jun 2012 11:01:57 -0700 (PDT) Received: from [10.10.11.13] (host1.hortonworks.com. [70.35.59.2]) by mx.google.com with ESMTPS id ju5sm6096442pbc.6.2012.06.29.11.01.55 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 29 Jun 2012 11:01:56 -0700 (PDT) From: Arun C Murthy Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: multipart/alternative; boundary=Apple-Mail-1--239022218 Subject: Re: Hadoop-2 generics compilation error Date: Fri, 29 Jun 2012 11:01:54 -0700 In-Reply-To: <1340947673.32328.YahooMailNeo@web121702.mail.ne1.yahoo.com> To: hdfs-dev@hadoop.apache.org References: <1340947673.32328.YahooMailNeo@web121702.mail.ne1.yahoo.com> Message-Id: X-Mailer: Apple Mail (2.1084) X-Gm-Message-State: ALoCoQnFrvlfdgn7sTJjWyJ8GQvZ+bmcH/Yg/HVlsl6WVUWYwpoUy90fipNa3O6Fg17ytcmfgunJ --Apple-Mail-1--239022218 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii HDFS-3113 is committed? Or, are you running with the patch yourself? It's still PA and I see Daryn reviewing it yet... Arun On Jun 28, 2012, at 10:27 PM, lars hofhansl wrote: > Since HDFS-3113 was integrated into Hadoop-2 I get the compilation = errors of the following type: >=20 > [ERROR] = /home/lars/dev/hadoop-2/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/ja= va/org/apache/hadoop/fs/http/server/HttpFSServer.java:[407,36] = incompatible types; no instance(s) of type variable(s) V exist so that V = conforms to boolean >=20 >=20 > Indeed at line 407 I see: >=20 > boolean hasData =3D params.get(DataParam.NAME, = DataParam.class); >=20 >=20 > When I change that to > Boolean hasData =3D params.get(DataParam.NAME, = DataParam.class); >=20 >=20 > instead (along with long to Long, short to Short, etc, later in that = file), everything compiles fine. >=20 > $ javac -version > javac 1.6.0_24 >=20 >=20 > $ java -version > java version "1.6.0_24" > OpenJDK Runtime Environment (IcedTea6 1.11.3) = (fedora-67.1.11.3.fc16-x86_64) > OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode) >=20 > Apparently OpenJDK gets mixed up on the type inference here. Can we = change this in the way I suggest so that Hadoop-2 (and presumably trunk) = can be=20 > compiled with OpenJDK? > I'm happy to create a jira and (trivial) patch. >=20 >=20 > Thanks. >=20 > -- Lars >=20 -- Arun C. Murthy Hortonworks Inc. http://hortonworks.com/ --Apple-Mail-1--239022218--