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

UNREACHABLE_CODE.EXCEPTION This statement in the source code is unreachable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 2.36.0
    • None
    • None

    Description

      In class CompressedLargeMessageControllerImpl

      this function is called in a number of other methods, but since there is an exception and no handler, it turns out that part of the code is unreachable

      The code is unreachable in these cases:

      1) the line with  ```return 0``` in unreachable

       

      2) the line with  ```return 0``` in unreachable

      3) the line with  ```return 0``` in unreachable

      4) the line with  ```return 0``` in unreachable

      5) the line with  ```return (short) (getByte(index) & 0xFF)``` in unreachable

      6) the line with  ```return getShort(index) & 0xFFFF``` in unreachable

      7) the line with  ```return getInt(index) & 0xFFFFFFFFL``` in unreachable

      8) the line with  ```dst[i] = getByte(index++)``` in unreachable

      9) the line with  ```dst.writerIndex(dst.writerIndex() + length)``` in unreachable

      10) the line with  ```return (char) getShort(index)``` in unreachable

      11) the line with  ```return Double.longBitsToDouble(getLong(index))``` in unreachable

      12) the line with  ```return Float.intBitsToFloat(getInt(index));``` in unreachable

      Attachments

        1. image-2024-04-29-00-32-18-126.png
          13 kB
          Andrey Slepykh
        2. image-2024-04-29-00-38-29-717.png
          13 kB
          Andrey Slepykh
        3. image-2024-04-29-00-40-51-302.png
          9 kB
          Andrey Slepykh
        4. image-2024-04-29-00-42-09-598.png
          11 kB
          Andrey Slepykh
        5. image-2024-04-29-00-42-42-738.png
          10 kB
          Andrey Slepykh
        6. image-2024-04-29-00-43-17-889.png
          11 kB
          Andrey Slepykh
        7. image-2024-04-29-00-45-35-605.png
          14 kB
          Andrey Slepykh
        8. image-2024-04-29-00-46-36-280.png
          12 kB
          Andrey Slepykh
        9. image-2024-04-29-00-48-23-220.png
          12 kB
          Andrey Slepykh
        10. image-2024-04-29-00-48-27-918.png
          12 kB
          Andrey Slepykh
        11. image-2024-04-29-00-50-16-576.png
          22 kB
          Andrey Slepykh
        12. image-2024-04-29-00-52-04-906.png
          32 kB
          Andrey Slepykh
        13. image-2024-04-29-00-54-09-929.png
          10 kB
          Andrey Slepykh
        14. image-2024-04-29-00-55-27-169.png
          13 kB
          Andrey Slepykh
        15. image-2024-04-29-00-57-19-800.png
          13 kB
          Andrey Slepykh

        Activity

          People

            jbertram Justin Bertram
            a.slepykh Andrey Slepykh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: