[rules-users] ClassCast exception while doing retract

techy techluver007 at gmail.com
Tue Mar 17 16:04:20 EDT 2009



Hello,
My retract util func() is below and ClassCast exception is thrown. Some help
please...

 public static <T>  void remove(WorkingMemory workingMemory,T... array) 
    { 
        if(array == null || array.length == 0)
        {
            return;
        }
    
        for (int i=0;i<array.length;i++) 
        { 
            
                workingMemory.retract((FactHandle) array[i]); 
        } 
             
    } 
-- 
View this message in context: http://www.nabble.com/ClassCast-exception-while-doing-retract-tp22566763p22566763.html
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list