Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-360

DefaultFTPFileEntryParserFactory.createFileEntryParser(String key) always tries to load a class

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.2
    • Fix Version/s: 3.0
    • Component/s: None
    • Labels:
      None

      Description

      DefaultFTPFileEntryParserFactory.createFileEntryParser(String key) always tries to load the class given by the key value.

      This is rather wasteful, as normally the autodetect mechanism is used. This provides the system name, which is unlikely ever to be a valid class name.

      Class names must match a specific format [1] & [2], so there is no point trying to load the class if the key does not have this format.

      [1] http://java.sun.com/docs/books/jvms/second_edition/html/Concepts.doc.html#20389
      [2] http://java.sun.com/docs/books/jvms/second_edition/html/Concepts.doc.html#28702

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sebb@apache.org Sebb
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: