You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2011/02/25 16:55:38 UTC

[jira] Created: (NET-360) DefaultFTPFileEntryParserFactory.createFileEntryParser(String key) always tries to load a class

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

                 Key: NET-360
                 URL: https://issues.apache.org/jira/browse/NET-360
             Project: Commons Net
          Issue Type: Bug
            Reporter: Sebb
            Priority: Minor


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

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (NET-360) DefaultFTPFileEntryParserFactory.createFileEntryParser(String key) always tries to load a class

Posted by "Sebb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/NET-360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb resolved NET-360.
----------------------

    Resolution: Fixed

> DefaultFTPFileEntryParserFactory.createFileEntryParser(String key) always tries to load a class
> -----------------------------------------------------------------------------------------------
>
>                 Key: NET-360
>                 URL: https://issues.apache.org/jira/browse/NET-360
>             Project: Commons Net
>          Issue Type: Bug
>            Reporter: Sebb
>            Priority: Minor
>
> 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

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (NET-360) DefaultFTPFileEntryParserFactory.createFileEntryParser(String key) always tries to load a class

Posted by "Sebb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/NET-360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb updated NET-360:
---------------------

    Affects Version/s: 2.0
                       2.2
        Fix Version/s: 3.0

> DefaultFTPFileEntryParserFactory.createFileEntryParser(String key) always tries to load a class
> -----------------------------------------------------------------------------------------------
>
>                 Key: NET-360
>                 URL: https://issues.apache.org/jira/browse/NET-360
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 2.0, 2.2
>            Reporter: Sebb
>            Priority: Minor
>             Fix For: 3.0
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira