Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-8341

Fix Default or Empty Catch block in Java and Groovy files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • ALL COMPONENTS
    • None

    Description

      In many Java and Groovy files we have auto generated catch blocks or empty catch blocks.
      To avoid such exception swallowing this should be improved to at least log the error and also return error in case of service.
      As of now I found following classes with such patterns -

      InventoryServices.java
      FreeMarkerWorker.java
      QRCodeEvents.java
      QRCodeServices.java

      Attachments

        1. OFBIZ-8341- OrderReadHelper.patch
          22 kB
          Jacques Le Roux

        Activity

          People

            jleroux Jacques Le Roux
            harshvijay Harsh Vijaywargiya
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: