Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8137052

Tests should not use context class loader

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • 9
    • None
    • javafx
    • None



      final ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
      resource = contextClassLoader.getResource(path.substring(1));

      should be:

      resource = TestClassName.class.getResource(path.substring(1));

            ddhill David Hill (Inactive)
            ddhill David Hill (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: