Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-3600

org/apache/wicket/util/lang/WicketObjects resolveClass resolved not used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5-RC3
    • 1.5-RC4
    • wicket
    • None
    • all

    Description

      The latest version of the resolveClass method has code that gets a resolved class, but then does not
      use it:

      public static <T> Class<T> resolveClass(final String className)
      {
      Class<T> resolved = null;
      try
      {
      if (Application.exists())

      { // BUG: this resolved value is never used resolved = (Class<T>)Application.get() .getApplicationSettings() .getClassResolver() .resolveClass(className); }

      resolved = (Class<T>)Class.forName(className, false, Thread.currentThread()
      .getContextClassLoader());
      }
      catch (ClassNotFoundException cnfx)

      { log.warn("Could not resolve class [" + className + "]", cnfx); }

      return resolved;
      }

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            emberson Richard Emberson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: