Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-3475

Possible recursion on PacketImpl::toString

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.19.0
    • None
    • None

    Description

      This is a mix of a bug and a task...

      classes extending Packet on core client are using a method named getParentString() on the toString();

      The initial intent was to be simple and never to abuse inheritance on the getParentString();

      Recent iteration on the code added a few occasions with toString() calling getParentString() calling toString() what caused a recursive loop.

      I'm making this simpler. by introducing a getPacketString() on PacketImpl where every extension of PacketImpl to simply call super.getParentString();

      Even though it still possible for someone to call itself on getParentString(), at least it would be clearer and easier to catch on revisions.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              clebertsuconic Clebert Suconic
              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