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 AF077200D18 for ; Wed, 27 Sep 2017 03:16:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AA1111609EA; Wed, 27 Sep 2017 01:16:11 +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 A004F1609D7 for ; Wed, 27 Sep 2017 03:16:10 +0200 (CEST) Received: (qmail 72488 invoked by uid 500); 27 Sep 2017 01:16:09 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 72476 invoked by uid 99); 27 Sep 2017 01:16:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Sep 2017 01:16:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id CE883180C22 for ; Wed, 27 Sep 2017 01:16:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.479 X-Spam-Level: ** X-Spam-Status: No, score=2.479 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gridgain-com.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Afdr0eP-nP5Z for ; Wed, 27 Sep 2017 01:16:05 +0000 (UTC) Received: from mail-qk0-f170.google.com (mail-qk0-f170.google.com [209.85.220.170]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 921D260CEB for ; Wed, 27 Sep 2017 01:16:04 +0000 (UTC) Received: by mail-qk0-f170.google.com with SMTP id u67so11869123qkg.6 for ; Tue, 26 Sep 2017 18:16:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gridgain-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=APehmsa9FK0oneJ2OalOi6MV0AkIirBF29xFCXhzios=; b=yYl6EV7zL5TR290f6oYSYYryv8Zl+YCoM4vE213+poL93PmgDBvdG53FpZ/UtvtbUj 53UIz+5QIogvamHAq1iujPUizQSow5VzhUwZ00Ia+yMHofxR0zzLeAEhcnP2A75MiaZf e/jiQ5JMe8lJFaPMJaVQtkBIEtCcCxW5d0Dl/tIkbKMywT3Ejx8cCjzFYkSM8/S5brMp Nwp6E+859nQzdZ2ZEDB8G+ugercQQoNGLM1GlXkc9EjSOxLH9lHVgew7SQ4bNYpfQ3Pz 5y/YSLK/NBOUQD3AGqWFJ3dmS0wexnIvdlWPyefZJbrJd62ELTLZVMRMwaKBMeT4bvUh ka5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=APehmsa9FK0oneJ2OalOi6MV0AkIirBF29xFCXhzios=; b=Xot9StX/oEpnnaMlFpd5L9/WiTE3OjiRbf4n1tmyOk6rglcp6S9FtFezrPslY5SdlR BRFeENVGFt7OtOdUzLrG+267dL00fuD3C38e17TDnXRgJxXAmQaR4isCasFWa7j58hIw kKy5DdvZIqgFG8HBjvgcakzDprOpglnOHjOx2ZcEIsgpIJ0nTRUeiQrmfbthed3d3GzL +glLlG+phLxCoEis3/XE/ixdpvAKvfYvO2BpEqYYisx8nc8mjR2aKd589gbr1p2d8bpk IsmucnX5jbQJQuRUIsD7vaYyfvK8OnEN+CsPyhMzZjJs8kj7bunV68/hC4xtmzfXlttL Q2JQ== X-Gm-Message-State: AHPjjUhOnGqUWy1Ni+XifW4jkJglwvro3szaFHzmNqr4ovwDqiwmME0b QQmI0rtYNAIGYQsKcdRPRBl5fUzCcdzxdk82EATa9Dq+ X-Google-Smtp-Source: AOwi7QDG6AVk6YcofMEVHzVMe0hVUvOu01Gbhik071aMFo6Cko/Sua9CinZUOISUYyv1ODQ5vT18/vWevILXu1d+1aM= X-Received: by 10.55.52.207 with SMTP id b198mr325366qka.60.1506474962919; Tue, 26 Sep 2017 18:16:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.170.218 with HTTP; Tue, 26 Sep 2017 18:16:02 -0700 (PDT) In-Reply-To: References: <8199DD25-985D-4F03-AC8C-7EFAF316A127@apache.org> <35D39810-A2F8-4CDC-BAF6-588FA580F005@apache.org> <27BAD8DF-A755-45E9-A7CD-0A89B60B782A@apache.org> <3403C32E-522D-4630-B02C-603E27D38854@apache.org> <10CD02A1E92EF946.19d9dc2b-e2ac-4ff7-9a0e-dd3cee154df3@mail.outlook.com> From: Denis Magda Date: Tue, 26 Sep 2017 18:16:02 -0700 Message-ID: Subject: Re: Should we take care of Java 9 in Ignite 2.0 scope? To: "dev@ignite.apache.org" Content-Type: multipart/alternative; boundary="001a114718aa07c151055a218946" archived-at: Wed, 27 Sep 2017 01:16:11 -0000 --001a114718aa07c151055a218946 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable You meant Java 7 drop I guess. That's a good question. Hope this happens soon. Denis On Tuesday, September 26, 2017, Nikita Ivanov wrote: > What about Java 8 to begin with? > > -- > Nikita Ivanov > > > On Tue, Sep 26, 2017 at 3:16 PM, Denis Magda > wrote: > > > Eventually now it=E2=80=99s time to put all the doubts aside on when Ig= nite > should > > support JDK 9. The JDK is production ready and was released not long ti= me > > ago. > > > > Is there anyone interested to enable JDK 9 for Ignite? > > > > =E2=80=94 > > Denis > > > > > On Mar 24, 2017, at 10:22 AM, Denis Magda > wrote: > > > > > > Evgenii, > > > > > > Thanks for the investigation. Could you update the ticket with all of > > your findings and suggestions? > > > > > > If you feel you can=E2=80=99t fix it by 2.0 then let=E2=80=99s do it = in the next minor > > release like 2.x. I don=E2=80=99t think that we introduce any breaking > > compatibilities when JDK 9 support is added later. Do you think so as > well? > > > > > > =E2=80=94 > > > Denis > > > > > >> On Mar 24, 2017, at 9:24 AM, Evgenii Zhuravlev < > > e.zhuravlev.wk@gmail.com > wrote: > > >> > > >> Igniters, > > >> > > >> I found that maven-war-plugin, that used in ignite-websphere-test > > doesn't > > >> work with java 9. Here is issue: > > >> https://issues.apache.org/jira/browse/MWAR-397.They have workaround > > with > > >> setting MAVEN_OPTS, but this workaround doesn't fit us. > > >> > > >> 2017-03-24 0:51 GMT+03:00 zixu mo >: > > >> > > >>> > > >>> > > >>> JB IDEA2017.1 released, support jdk 9. > > >>> > > >>> > > >>> > > >>> > > >>> On Fri, Mar 24, 2017 at 12:14 AM +0800, "Anton Vinogradov" < > > >>> avinogradov@gridgain.com > wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> Denis, > > >>> > > >>> I'm not sure, but javac usage seems to be not our but IDE "problem"= . > > >>> No one call javac directly, AFAIK. > > >>> > > >>> So, any --add-exports can be added to wrapping maven, .bat/.sh or I= DE > > >>> settings. > > >>> I'm pretty sure JB's IDEA will handle this right after Java9 releas= e > :) > > >>> > > >>> On Wed, Mar 22, 2017 at 12:19 PM, Anton Vinogradov wrote: > > >>> > > >>>> Denis, > > >>>> > > >>>> I'm not sure, but javac usage seems to be not our but IDE "problem= ". > > >>>> No one call javac directly, AFAIK. > > >>>> > > >>>> So, any --add-exports can be added to wrapping maven, .bat/.sh or > IDE > > >>>> settings. > > >>>> I'm pretty sure JB's IDEA will handle this right after Java9 relea= se > > :) > > >>>> > > >>>> On Wed, Mar 22, 2017 at 1:43 AM, Denis Magda wrote: > > >>>> > > >>>>> For using internal classes that not exported by default, we will > > need to > > >>>>> add new args(--add-exports) when compiling (javac) *and* when > running > > >>>>> (java > > >>>>> ). > > >>>>> Is it ok? > > >>>>> > > >>>>> > > >>>>> Anton, are you fine with this approach? > > >>>>> > > >>>>> =E2=80=94 > > >>>>> Denis > > >>>>> > > >>>>> On Mar 21, 2017, at 11:05 AM, Evgenii Zhuravlev > > >>>>> wrote: > > >>>>> > > >>>>> Denis, > > >>>>> > > >>>>> I've found that some internal classes like sun.misc.SharedSecrets= , > > >>>>> sun.misc.URLClassPath, sun.misc.PerfCounter, sun.misc.Cleaner > changed > > >>>>> their > > >>>>> packages. I can create wrapper for this classes with 2 modules, > that > > can > > >>>>> be > > >>>>> enabled by profiles for java9 and java7-8. > > >>>>> For using internal classes that not exported by default, we will > > need to > > >>>>> add new args(--add-exports) when compiling (javac) *and* when > running > > >>>>> (java > > >>>>> ). > > >>>>> Is it ok? > > >>>>> > > >>>>> > > >>>>> Also, there are a two different Unsafe classes in java 9 - > > >>>>> sun.misc.Unsafe > > >>>>> & jdk.internal.misc.Unsafe, but both of them doesn't have > > monitorEnter & > > >>>>> monitorExit methods, that we use in > > >>>>> org.apache.ignite.internal.util.GridUnsafe. What should I do with > > this > > >>>>> case? > > >>>>> > > >>>>> > > >>>>> > > >>>>> 2017-03-21 11:21 GMT+03:00 =D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8= =D0=B9 =D0=96=D1=83=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=B2 : > > >>>>> > > >>>>> Denis, > > >>>>> > > >>>>> I found some recommendations on openjdk wiki: > > >>>>> https://wiki.openjdk.java.net/display/JDK8/Java+Dependency+ > > >>> Analysis+Tool > > >>>>> > > >>>>> 2017-03-20 20:44 GMT+03:00 Denis Magda : > > >>>>> > > >>>>> Referring to your report only the following API was removed > > completely. > > >>>>> The rest is still deprecated and stowed in special JDK 9 modules. > > >>>>> > > >>>>> > > >>>>> "org.apache.ignite.internal.processors.hadoop.HadoopClassLoader" > -> > > >>>>> "sun.misc.PerfCounter (JDK internal API (JDK removed internal > API))=E2=80=9D; > > >>>>> > > >>>>> > > >>>>> "org.apache.ignite.internal.processors.platform.memory.Pla > > >>>>> tformMemoryPool" > > >>>>> -> "sun.misc.Cleaner (JDK internal API (JDK removed internal > API))=E2=80=9D; > > >>>>> > > >>>>> "org.apache.ignite.internal.util.nio.GridNioServer$Abstrac > > >>>>> tNioClientWorker" > > >>>>> -> "sun.misc.Cleaner (JDK internal API (JDK removed internal > API))"; > > >>>>> > > >>>>> > > >>>>> "org.apache.ignite.internal.processors.rest.protocols.GridRe > > >>>>> stProtocolAdapter" > > >>>>> -> "sun.misc.BASE64Encoder (JDK internal API (JDK removed interna= l > > >>> API))=E2=80=9D; > > >>>>> > > >>>>> "org.apache.ignite.internal.util.IgniteUtils" -> > > >>>>> "sun.misc.JavaNetAccess (JDK internal API (JDK removed internal > > API))=E2=80=9D; > > >>>>> > > >>>>> > > >>>>> "org.apache.ignite.internal.util.IgniteUtils" -> > > >>>>> "sun.misc.SharedSecrets (JDK internal API (JDK removed internal > > API))=E2=80=9D; > > >>>>> > > >>>>> > > >>>>> "org.apache.ignite.internal.util.IgniteUtils" -> > > >>>>> "sun.misc.URLClassPath (JDK internal API (JDK removed internal > > API))=E2=80=9D; > > >>>>> > > >>>>> > > >>>>> > > >>>>> *Evgeniy*, does Oracle officially suggest replacements for delete= d > > APIs? > > >>>>> Probably it=E2=80=99s a matter of day to do a switch. > > >>>>> > > >>>>> > > >>>>> =E2=80=94 > > >>>>> Denis > > >>>>> > > >>>>> On Mar 20, 2017, at 9:57 AM, =D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8= =D0=B9 =D0=96=D1=83=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=B2 > > >>>>> > > >>>>> wrote: > > >>>>> > > >>>>> > > >>>>> Igniters, > > >>>>> > > >>>>> There are a few JDK internal APIs removed in JDK 9, that we use i= n > > >>>>> > > >>>>> ignite. We need to decide what to do with these dependencies. Her= e > > is a > > >>>>> list of dependencies after using jdeps > > >>>>> > > >>>>> > > >>>>> 2017-01-26 12:07 GMT+03:00 Anton Vinogradov > > > >>>>>>> : > > >>>>> > > >>>>> Denis, > > >>>>> > > >>>>> I've created issue > > > >>>>> https://issues.apache.org/jira/browse/IGNITE-4615>> related > > >>>>> > > >>>>> to discussion. > > >>>>> We have a lot of legacy code inside pom.xml files. One of legacy > > issues > > >>>>> > > >>>>> is > > >>>>> > > >>>>> a tools.jar usage. > > >>>>> So, it will be nice to fix this as well. > > >>>>> > > >>>>> On Thu, Jan 26, 2017 at 2:54 AM, Denis Magda > > > >>>>>>> wrote: > > >>>>> > > >>>>> > > >>>>> Well, the build fails almost immediately on the latest JDK 9. > > >>>>> > > >>>>> This is the reason (https://issues.jenkins-ci.org > > >>>>> > > >>>>> /browse/JENKINS-25993 > > > >>>>> ). > > >>>>> > > >>>>> > > >>>>> [ERROR] Failed to execute goal on project ignite-tools: Could not > > >>>>> > > >>>>> resolve > > >>>>> > > >>>>> dependencies for project org.apache.ignite:ignite-tools > > >>>>> > > >>>>> :jar:2.0.0-SNAPSHOT: > > >>>>> > > >>>>> Could not find artifact com.sun:tools:jar:9-ea at specified path > > >>>>> /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/.. > > >>>>> > > >>>>> /lib/tools.jar > > >>>>> > > >>>>> -> [Help 1] > > >>>>> > > >>>>> > > >>>>> If to tweak pom files cleaning out references to tools.jar then > other > > >>>>> exceptions arise. > > >>>>> > > >>>>> *Anton V*, could try to build the master on your side applying al= l > > the > > >>>>> required changes to pom files? I don=E2=80=99t think I=E2=80=99ll= do everything > > >>>>> > > >>>>> correctly. > > >>>>> > > >>>>> If the build goes through at least with minor modifications then > this > > >>>>> > > >>>>> would > > >>>>> > > >>>>> be a good sign. > > >>>>> > > >>>>> =E2=80=94 > > >>>>> Denis > > >>>>> > > >>>>> > > >>>>> On Jan 25, 2017, at 3:22 PM, Denis Magda > > > >>>>> dmagda@apache.org >> wrote: > > >>>>> > > >>>>> > > >>>>> Vovan, > > >>>>> > > >>>>> As far as I understand, under the module they mean new > > >>>>> > > >>>>> component/feature > > >>>>> > > >>>>> of Java 9 [1]. If you don=E2=80=99t use Java modules then there s= houldn=E2=80=99t > be > > >>>>> > > >>>>> any > > >>>>> > > >>>>> issues at all. > > >>>>> > > >>>>> In any case, let me try to build the project with JDK 9 that has > > >>>>> > > >>>>> passed > > >>>>> > > >>>>> feature complete phase. > > >>>>> > > >>>>> [1] http://openjdk.java.net/projects/jigsaw/spec/sotms/#defining > > >>>>> > > >>>>> -modules > g-modules> < > > >>>>> > > >>>>> http://openjdk.java.net/projects/jigsaw/spec/sotms/# > defining-modules > > >>>>> > > >>>>>> > > >>>>> > > >>>>> > > >>>>> =E2=80=94 > > >>>>> Denis > > >>>>> > > >>>>> On Jan 25, 2017, at 5:47 AM, Vladimir Ozerov > > > >>>>>>> wrote: > > >>>>> > > >>>>> > > >>>>> Igniters, > > >>>>> > > >>>>> Please see this article [1] from Kotlin guys. They had to re-pack > > >>>>> > > >>>>> public > > >>>>> > > >>>>> API because Java 9 doesn't allow several modules to share the sam= e > > >>>>> > > >>>>> public > > >>>>> > > >>>>> package. Looks like this limitation could impact us at some point= , > so > > >>>>> > > >>>>> that > > >>>>> > > >>>>> we will not be able to support Java 9 without breaking API change= s. > > >>>>> > > >>>>> May be it makes sense to perform some initial investigation of > Java 9 > > >>>>> impact before AI 2.0 release, so that we can minimize (or at leas= t > > >>>>> estimate) potential future impact? > > >>>>> > > >>>>> Vladimir. > > >>>>> > > >>>>> [1] > > >>>>> https://blog.jetbrains.com/kotlin/2017/01/kotlin-1-1- < > > >>>>> > > >>>>> https://blog.jetbrains.com/kotlin/2017/01/kotlin-1-1-> > > >>>>> > > >>>>> whats-coming-in-the-standard-library/ > > >>>>> > > >>>>> > > >>>>> > > >>>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > > > > > > > --001a114718aa07c151055a218946--