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

Fix Default or Empty Catch block in Java and Groovy files

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 17.12.01
    • Component/s: ALL COMPONENTS
    • Labels:
      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

          Activity

            People

            • Assignee:
              jacques.le.roux Jacques Le Roux
              Reporter:
              harshvijay Harsh Vijaywargiya
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: