incubator-directmemory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simone Tripodi (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRECTMEMORY-43) Cache should allow key objects instead of plain string
Date Sat, 18 Feb 2012 13:10:59 GMT

    [ https://issues.apache.org/jira/browse/DIRECTMEMORY-43?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13210927#comment-13210927
] 

Simone Tripodi commented on DIRECTMEMORY-43:
--------------------------------------------

Thank you Michael, I cannot apply the patch ATM because there is a false statement:

{code}
@@ -214,11 +214,11 @@
             if ( ptr.clazz == ByteBuffer.class )
             {
                 // skip serialization if it is a bytebuffer
-                return ptr.directBuffer;
+                return (V) ptr.directBuffer;
             }
{code}

as you can see, we cannot blindly cast {{ByteBuffer}} to {{V}}.

I am studying a deeper type inference in the whole class set. Thanks you for contributing!
                
> Cache should allow key objects instead of plain string
> ------------------------------------------------------
>
>                 Key: DIRECTMEMORY-43
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-43
>             Project: Apache DirectMemory
>          Issue Type: Improvement
>            Reporter: Maurizio Cucchiara
>            Assignee: Maurizio Cucchiara
>         Attachments: DIRECTMEMORY-43.patch, patch.org.apache.directmemory.cache.zip
>
>
> See http://goo.gl/D4SRN

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

        

Mime
View raw message