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 CC34B200D3E for ; Thu, 2 Nov 2017 00:54:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CAB58160BFA; Wed, 1 Nov 2017 23:54: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 1D63F160BEA for ; Thu, 2 Nov 2017 00:54:03 +0100 (CET) Received: (qmail 17240 invoked by uid 500); 1 Nov 2017 23:54:03 -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 17231 invoked by uid 99); 1 Nov 2017 23:54:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Nov 2017 23:54:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 70123D68A4 for ; Wed, 1 Nov 2017 23:54:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id rE9rBdkahYh7 for ; Wed, 1 Nov 2017 23:54: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 22E125FCC3 for ; Wed, 1 Nov 2017 23:54: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 60598E069F for ; Wed, 1 Nov 2017 23:54: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 1CB0F2440B for ; Wed, 1 Nov 2017 23:54:00 +0000 (UTC) Date: Wed, 1 Nov 2017 23:54:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-6745) Java 9: rework usages of URLClassLoader.getURLs() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 01 Nov 2017 23:54:05 -0000 [ https://issues.apache.org/jira/browse/IGNITE-6745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16234985#comment-16234985 ] ASF GitHub Bot commented on IGNITE-6745: ---------------------------------------- GitHub user elcergey opened a pull request: https://github.com/apache/ignite/pull/2970 IGNITE-6745: Java 9: rework usages of URLClassLoader.getURLs() Regarding the https://issues.apache.org/jira/browse/IGNITE-6745 You can merge this pull request into a Git repository by running: $ git pull https://github.com/elcergey/ignite master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/ignite/pull/2970.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #2970 ---- commit 31aae683b37c4feeddaba3100e46526e3d1f019d Author: cossack5@mail.ru Date: 2017-11-01T23:51:04Z IGNITE-6745: Java 9: rework usages of URLClassLoader.getURLs() ---- > Java 9: rework usages of URLClassLoader.getURLs() > ------------------------------------------------- > > Key: IGNITE-6745 > URL: https://issues.apache.org/jira/browse/IGNITE-6745 > Project: Ignite > Issue Type: Task > Security Level: Public(Viewable by anyone) > Components: general > Reporter: Vladimir Ozerov > Priority: Major > Fix For: 2.4 > > Attachments: IGNITE-6745.patch > > > We use this method in multiple places: > 1) {{MessageCodeGenerator}} > 2) {{BinaryContext}} > 3) {{ClassesGenerator}} > 4) {{GridUriDeploymentFileProcessor}} > The problem is that in Java 9 application class loader is not {{URLClassLoader}}, so we cannot get URLs easily. Instead typically it is {{BuiltinClassLoader}}, which refers to {{URLClassLoader}} in it's internal field {{ucp}}. > Let's refactor all usages of {{URLClassLoader.getURLs}} to some utility method, which will be able to handle both Java 7/8 and Java 9 (through reflection). -- This message was sent by Atlassian JIRA (v6.4.14#64029)