directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve hammond (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRSHARED-26) Need a clone function for filters
Date Sun, 22 Feb 2009 04:59:06 GMT

    [ https://issues.apache.org/jira/browse/DIRSHARED-26?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675626#action_12675626
] 

Steve hammond commented on DIRSHARED-26:
----------------------------------------

Thanx for the input. 

I tried to use super.clone() in the first pass of coding, however when I
tried to do things like AndNode cln = (AndNode) super.clone() I got
compile errors of cannot cast from BranchNode to AndNode (downcast).
And since I couldn't get past that block, and needed the code for my own
use, I change to just calling the constructor, which handled the super
constructor.

I will be happy to see how you get around this when the patch is
applied.

Sorry about the coding conventions and the spaces/tabs.  I just copied
what eclipse put in based on my companies standard.  I will be more
careful next time.  And I will comment better.



> Need a clone function for filters
> ---------------------------------
>
>                 Key: DIRSHARED-26
>                 URL: https://issues.apache.org/jira/browse/DIRSHARED-26
>             Project: Directory Shared
>          Issue Type: New Feature
>    Affects Versions: 0.9.13
>            Reporter: Steve hammond
>            Assignee: Emmanuel Lecharny
>         Attachments: filterClone.patch
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> We should have a clone function.  This will make an entire copy of a filter into a new
memory space.  This clone can be altered without changing the original.

-- 
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