ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Ozerov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-6745) Java 9: rework usages of URLClassLoader.getURLs()
Date Tue, 24 Oct 2017 15:13:00 GMT
Vladimir Ozerov created IGNITE-6745:

             Summary: 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
             Fix For: 2.4

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

View raw message