Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-16042

NamedListChange#createAfter should fail if called on a deleted key

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.0-alpha4
    • None

    Description

      Given the following situation:

      1. There exists a NamedList x = ["foo" -> "bar", "baz" -> "quux"]
      2. Execute something like the following x.change(c -> c.delete("foo").insertAfter("foo", ...)). I.e. we are calling insertAfter on a key that has been deleted in the same change closure.

      Currently this code works without errors (effectively inserting a key before baz), which is inconsistent with all other methods of this class that will throw an exception instead. It is proposed to make this method fail as well

      Attachments

        Issue Links

          Activity

            People

              apolovtcev Aleksandr Polovtcev
              apolovtcev Aleksandr Polovtcev
              Ivan Bessonov Ivan Bessonov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m