directory-dev mailing list archives

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


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

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

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

View raw message