Project

General

Profile

Actions

Bug #6088

closed

The use of depricated methods

Added by Alexander Kamkin almost 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
High
Category:
Test Engine
Target version:
Start date:
06/22/2015
Due date:
% Done:

100%

Estimated time:
Detected in build:
svn
Platform:
Published in build:
2.2.7

Description

The method toUrl is depricated.

    final URL url;
    try {
      url = file.toURL();
    } catch (MalformedURLException e1) {
      Logger.error(e1.getMessage());
      return testBase;
    }

    final URL[] urls = new URL[]{url};
    final ClassLoader loader = new URLClassLoader(urls);
Actions #1

Updated by Andrei Tatarnikov almost 9 years ago

I created a utility class doing a similar job (loading a model):

http://forge.ispras.ru/projects/microtesk/repository/entry/trunk/microtesk/src/main/java/core/ru/ispras/microtesk/SysUtils.java

I suggest that we create a similar method for loading extensions.

Actions #2

Updated by Andrei Tatarnikov almost 9 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Fixed the warning - r3946. But refactoring would be highly desirable.

Actions #3

Updated by Alexander Kamkin over 8 years ago

  • Status changed from Resolved to Closed
  • Published in build set to 2.2.7
Actions

Also available in: Atom PDF