Return-Path: X-Original-To: apmail-giraph-dev-archive@www.apache.org Delivered-To: apmail-giraph-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3879210299 for ; Wed, 31 Dec 2014 09:23:17 +0000 (UTC) Received: (qmail 63652 invoked by uid 500); 31 Dec 2014 09:23:17 -0000 Delivered-To: apmail-giraph-dev-archive@giraph.apache.org Received: (qmail 63605 invoked by uid 500); 31 Dec 2014 09:23:17 -0000 Mailing-List: contact dev-help@giraph.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@giraph.apache.org Delivered-To: mailing list dev@giraph.apache.org Received: (qmail 63594 invoked by uid 99); 31 Dec 2014 09:23:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Dec 2014 09:23:16 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of olivier.varene@orange.com designates 193.251.215.91 as permitted sender) Received: from [193.251.215.91] (HELO relais-inet.francetelecom.com) (193.251.215.91) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Dec 2014 09:23:11 +0000 Received: from omfedm05.si.francetelecom.fr (unknown [xx.xx.xx.1]) by omfedm12.si.francetelecom.fr (ESMTP service) with ESMTP id 8191F18C2B9 for ; Wed, 31 Dec 2014 10:21:50 +0100 (CET) Received: from Exchangemail-eme2.itn.ftgroup (unknown [10.114.31.16]) by omfedm05.si.francetelecom.fr (ESMTP service) with ESMTP id 686A335C04E for ; Wed, 31 Dec 2014 10:21:50 +0100 (CET) Received: from OPEXCLILM42.corporate.adroot.infra.ftgroup ([169.254.2.208]) by OPEXCLILH05.corporate.adroot.infra.ftgroup ([10.114.31.16]) with mapi id 14.03.0210.002; Wed, 31 Dec 2014 10:21:50 +0100 From: To: "dev@giraph.apache.org" Subject: Giraph - Porting to Java 1.6 - diamond operator issue Thread-Topic: Giraph - Porting to Java 1.6 - diamond operator issue Thread-Index: AQHQJNs1hQUblUKUTU+H/U6XvIw5tg== Date: Wed, 31 Dec 2014 09:21:49 +0000 Message-ID: <7764_1420017710_54A3C02E_7764_2942_1_4915A820-7F61-46FF-B0D0-29A6306760BA@orange-ftgroup.com> Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.168.234.5] Content-Type: text/plain; charset="iso-8859-1" Content-ID: <41D2EB4AB6F34E40B1B7A36DA6EEAF62@adroot.infra.ftgroup> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-PMX-Version: 6.0.3.2322014, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2014.12.22.190922 X-Virus-Checked: Checked by ClamAV on apache.org Hi to all, because of actual production environment constraints, I need to make Giraph= 1.1 compatible with Java 1.6. My production environment is Java 1.6.0_26-b03 / Cloudera cdh4.4.0 ... I kn= ow, I know ... :( :( :( However, I am stuck on this syntax, and I don't know how to make it compati= ble with Java 1.6 . * diamond operator is not supported in 1.6 so here "new WrappedMappingInputFormat<>(" public WrappedMappingInputFormat createWrappedMappingInputFormat() { // how to determine ? extends Writable // via conf ? mappingTargetClass ??? //Type T =3D mappingTargetClass.getGenericSuperclass(); //Class l_writable =3D (Class) ((ParameterizedType) getMappingInput= FormatClass().getGenericSuperclass()).getActualTypeArguments()[3]; WrappedMappingInputFormat wrappedMappingInputFormat =3D new WrappedMappingInputFormat<>(createMappingInputFormat()); configureIfPossible(wrappedMappingInputFormat); return wrappedMappingInputFormat; } What would be the trick / construct to make it 1.6 compatible ? ( watch out the "? extends Writable" ... ) Thanks a lot best regards and happy new year Olivier =20 ------------------------------------ Olivier Var=E8ne Big Data Referent Orange - DSI France/Digital Factory olivier.varene@orange.com +33 4 97 46 29 94 ___________________________________________________________________________= ______________________________________________ Ce message et ses pieces jointes peuvent contenir des informations confiden= tielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu= ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages el= ectroniques etant susceptibles d'alteration, Orange decline toute responsabilite si ce message a ete altere, deforme ou = falsifie. Merci. This message and its attachments may contain confidential or privileged inf= ormation that may be protected by law; they should not be distributed, used or copied without authorisation. If you have received this email in error, please notify the sender and dele= te this message and its attachments. As emails may be altered, Orange is not liable for messages that have been = modified, changed or falsified. Thank you.