Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-6745

Java 9: rework usages of URLClassLoader.getURLs()

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3
    • 2.4
    • general
    • None

    Description

      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).

      Attachments

        1. IGNITE-6745.patch
          11 kB
          Cergey Chaulin

        Issue Links

          Activity

            People

              cossack5 Cergey Chaulin
              vozerov Vladimir Ozerov
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m