[infinispan-issues] [JBoss JIRA] (ISPN-2122) Overwrite/Implement the missing default File methods

Galder Zamarreño (JIRA) jira-events at lists.jboss.org
Thu Jul 19 05:40:07 EDT 2012


     [ https://issues.jboss.org/browse/ISPN-2122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Galder Zamarreño resolved ISPN-2122.
------------------------------------

    Fix Version/s: 5.2.0.ALPHA2
                   5.2.0.FINAL
       Resolution: Done

    
> Overwrite/Implement the missing default File methods
> ----------------------------------------------------
>
>                 Key: ISPN-2122
>                 URL: https://issues.jboss.org/browse/ISPN-2122
>             Project: Infinispan
>          Issue Type: Enhancement
>          Components: Core API
>    Affects Versions: 5.1.5.FINAL
>            Reporter: Thomas Fromm
>            Assignee: Thomas Fromm
>             Fix For: 5.2.0.ALPHA2, 5.2.0.FINAL
>
>
> GridFile overwrites not all default methods, what result into errors when using them. So depending on what we can already provide I'll suggest the following implementation:
> canRead() // return true
> canWrite() // return true
> isHidden() // return false
> canExecute() // return false
> deleteOnExit() // using JVM hooks could be too late and there are no pre-CacheStopped events, ideas welcome 
> renameTo(File dest) // check if dest is GridFile and rename if its true
> setLastModified(long time) // just implement
> // for them just throw unsupported operation ATM
> getCanonicalPath() // until resolving .. and so on is available
> getCanonicalFile() // until resolv path is avail
> setReadOnly()
> getUsableSpace()
> getFreeSpace()
> getTotalSpace()
> setExecutable(boolean executable)
> setExecutable(boolean executable, boolean ownerOnly)
> setReadable(boolean readable)
> setReadable(boolean readable, boolean ownerOnly)operation
> setWritable(boolean writable)
> setWritable(boolean writable, boolean ownerOnly)
> toURI()
> toURL()

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the infinispan-issues mailing list