Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-2

RemoveCommand.value not marshalled


    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 4.0.0.ALPHA1, 4.0.0.Final
    • None
    • Core
    • None

      The way Marshaller implementations such as HorizonMarshaller deal with ReplicableCommands is this way:

      To marshall, getParameters and marshall them.
      To unmarshall, unmarshall parameters and call setParameters()

      Now, RemoveCommand extends AbstractDataCommand but also adds a new instance variable for situations
      where it needs to remove entry for key only if currently mapped to given value.

      protected Object value;

      However, RemoveCommand does not override getParameters()/setParameters to pass the value over the
      wire and neither it reads it from the wire. Is this intentional? Maybe the comparison is done already before the
      command itself and hence it does not need to be marshalled accross.

      Mircea, could you clarify?

            rh-ee-galder Galder ZamarreƱo
            rh-ee-galder Galder ZamarreƱo
            0 Vote for this issue
            0 Start watching this issue