commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (COLLECTIONS-252) LinkEntry should public class
Date Thu, 13 Sep 2007 00:37:32 GMT

     [ https://issues.apache.org/jira/browse/COLLECTIONS-252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Henri Yandell resolved COLLECTIONS-252.
---------------------------------------

    Resolution: Invalid

You can do it if you do:

import org.apache.commons.collections.map.*;

public class Test extends AbstractLinkedMap {

    protected static class TestEntry extends AbstractLinkedMap.LinkEntry {
        protected TestEntry(HashEntry next, int hashCode, Object key, Object value) {
            super(next, hashCode, key, value);
        }
    }

}

ie) When you extend the Map to override the removeLRU method, you also extend the LinkEntry
class INSIDE your map extension.

Please reopen if that doesn't solve the issue.

> LinkEntry  should public class
> ------------------------------
>
>                 Key: COLLECTIONS-252
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-252
>             Project: Commons Collections
>          Issue Type: Improvement
>          Components: Map
>    Affects Versions: 3.2
>            Reporter: daxia
>
> The LRUMap' method  removeLRU is for Subclass method.
> but removeLRU(LinkEntry entry)
> The LinkEntry is the intenal class (protected static class LinkEntry extends HashEntry)
> This prevent other user  override this method with different package.
> LinkEntry  full name:
> org.apache.commons.collections.map.AbstractLinkedMap.LinkEntry

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message