You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Andrea Francia (JIRA)" <ji...@apache.org> on 2008/10/13 23:32:44 UTC
[jira] Created: (FTPSERVER-195) Some boolean properties of FtpFile
are not accessibile with the JavaBean isFoo()
Some boolean properties of FtpFile are not accessibile with the JavaBean isFoo()
--------------------------------------------------------------------------------
Key: FTPSERVER-195
URL: https://issues.apache.org/jira/browse/FTPSERVER-195
Project: FtpServer
Issue Type: Bug
Reporter: Andrea Francia
We have three properties that do not follow the JavaBean convention:
public interface FtpFile {
boolean hasReadPermission();
boolean hasWritePermission();
boolean hasDeletePermission();
...
}
They could be renamed as
public interface FtpFile {
boolean isReadable();
boolean isWritable();
boolean isRemovable();
...
}
Using the JavaBean convetion for properties allow interoperability with code that uses bean introspection to access to object classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (FTPSERVER-195) Some boolean properties of FtpFile
are not accessibile with the JavaBean isFoo()
Posted by "Niklas Gustavsson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FTPSERVER-195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Niklas Gustavsson closed FTPSERVER-195.
---------------------------------------
Resolution: Fixed
Fix Version/s: 1.0-M4
Assignee: Niklas Gustavsson
Too late Emmanuel, I fixed it now in rev 704607. But, patches are of course welcome for all bugs. Thanks for reporting this one.
> Some boolean properties of FtpFile are not accessibile with the JavaBean isFoo()
> --------------------------------------------------------------------------------
>
> Key: FTPSERVER-195
> URL: https://issues.apache.org/jira/browse/FTPSERVER-195
> Project: FtpServer
> Issue Type: Bug
> Reporter: Andrea Francia
> Assignee: Niklas Gustavsson
> Fix For: 1.0-M4
>
>
> We have three properties that do not follow the JavaBean convention:
> public interface FtpFile {
> boolean hasReadPermission();
> boolean hasWritePermission();
> boolean hasDeletePermission();
> ...
> }
> They could be renamed as
> public interface FtpFile {
> boolean isReadable();
> boolean isWritable();
> boolean isRemovable();
> ...
> }
> Using the JavaBean convetion for properties allow interoperability with code that uses bean introspection to access to object classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (FTPSERVER-195) Some boolean properties of
FtpFile are not accessibile with the JavaBean isFoo()
Posted by "Andrea Francia (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FTPSERVER-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12639559#action_12639559 ]
Andrea Francia commented on FTPSERVER-195:
------------------------------------------
Sorry but I have little time to dedicate to non-work projects and yesterday my netbeans 6.5 had some problems.
I'm not sure about the isRemovable() method name I suggested because the rfc959 usese the "delete" verb and the DELE command for files, even if it uses "remove" (and RMD) for directories. But the FtpFile represents both. And the english words "remove" and "delete" are not true synonym. I don't know but I don't think it's so important.
> Some boolean properties of FtpFile are not accessibile with the JavaBean isFoo()
> --------------------------------------------------------------------------------
>
> Key: FTPSERVER-195
> URL: https://issues.apache.org/jira/browse/FTPSERVER-195
> Project: FtpServer
> Issue Type: Bug
> Reporter: Andrea Francia
> Assignee: Niklas Gustavsson
> Fix For: 1.0-M4
>
>
> We have three properties that do not follow the JavaBean convention:
> public interface FtpFile {
> boolean hasReadPermission();
> boolean hasWritePermission();
> boolean hasDeletePermission();
> ...
> }
> They could be renamed as
> public interface FtpFile {
> boolean isReadable();
> boolean isWritable();
> boolean isRemovable();
> ...
> }
> Using the JavaBean convetion for properties allow interoperability with code that uses bean introspection to access to object classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (FTPSERVER-195) Some boolean properties of
FtpFile are not accessibile with the JavaBean isFoo()
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FTPSERVER-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12639205#action_12639205 ]
Emmanuel Lecharny commented on FTPSERVER-195:
---------------------------------------------
Makes sense !
Can you provide a patch for such a modification ? When it's obvious, simply applying a patch is certainly faster than modifying the code
> Some boolean properties of FtpFile are not accessibile with the JavaBean isFoo()
> --------------------------------------------------------------------------------
>
> Key: FTPSERVER-195
> URL: https://issues.apache.org/jira/browse/FTPSERVER-195
> Project: FtpServer
> Issue Type: Bug
> Reporter: Andrea Francia
>
> We have three properties that do not follow the JavaBean convention:
> public interface FtpFile {
> boolean hasReadPermission();
> boolean hasWritePermission();
> boolean hasDeletePermission();
> ...
> }
> They could be renamed as
> public interface FtpFile {
> boolean isReadable();
> boolean isWritable();
> boolean isRemovable();
> ...
> }
> Using the JavaBean convetion for properties allow interoperability with code that uses bean introspection to access to object classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.