From issues-return-76141-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Tue Sep 25 14:27:04 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id B61A2180718 for ; Tue, 25 Sep 2018 14:27:03 +0200 (CEST) Received: (qmail 84800 invoked by uid 500); 25 Sep 2018 12:27:02 -0000 Mailing-List: contact issues-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 issues@ignite.apache.org Received: (qmail 84790 invoked by uid 99); 25 Sep 2018 12:27:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Sep 2018 12:27:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 73C3AC05B9 for ; Tue, 25 Sep 2018 12:27:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id dSMhBvhwa0gX for ; Tue, 25 Sep 2018 12:27: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 1AF4C5F41A for ; Tue, 25 Sep 2018 12:27: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 6D5DFE0A31 for ; Tue, 25 Sep 2018 12:27: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 3563323F9C for ; Tue, 25 Sep 2018 12:27:00 +0000 (UTC) Date: Tue, 25 Sep 2018 12:27:00 +0000 (UTC) From: "Taras Ledkov (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (IGNITE-8146) JDK9: IgniteUtils classLoaderUrls() JDK9 bug MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IGNITE-8146?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Taras Ledkov updated IGNITE-8146: --------------------------------- Summary: JDK9: IgniteUtils classLoaderUrls() JDK9 bug (was: IgniteUtil= s classLoaderUrls() JDK9 bug) > JDK9: IgniteUtils classLoaderUrls() JDK9 bug > -------------------------------------------- > > Key: IGNITE-8146 > URL: https://issues.apache.org/jira/browse/IGNITE-8146 > Project: Ignite > Issue Type: Bug > Components: general > Affects Versions: 2.4 > Reporter: Sujit Kumar Mahapatra > Assignee: Taras Ledkov > Priority: Trivial > Labels: jdk9 > Original Estimate: 48h > Remaining Estimate: 48h > > Reporting a probable miss that breaks JDK9 compatibility. > As part of=C2=A0[this commit|https://github.com/apache/ignite/commit/ee2a= 6f7c3f2e3c9bd8dc61c8dbdf171e933d9481#diff-309ab4ef2fc61d6b2570d390acfb9bd6]= =C2=A0=C2=A0in=C2=A0[ignite|https://github.com/apache/ignite/tree/f1a853ded= 8e835ce8c98c029cce7d5d17fbd3f52]/modules/core/src/main/java/org/apache/igni= te/internal/util/*IgniteUtils.java,*=C2=A0below lines will throw=C2=A0*Clas= sCastException* in JDK9 during runtime. > _return ((URLClassLoader)urlClsLdrField.get(clsLdr)).getURLs();_ > =C2=A0 > Here,=C2=A0_urlClsLdrField.get(clsLdr)_=C2=A0return an object of type "__= _java.base/jdk.internal.loader.URLClassPath_" which can't be cast to "_URLC= lassLoader"._ > =C2=A0 > The fix seems to be to introduce another reflection call to invoke=C2=A0_= getURLs_=C2=A0 method of the internal=C2=A0_URLClassPath_=C2=A0class. -- This message was sent by Atlassian JIRA (v7.6.3#76005)