You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2017/09/05 05:19:00 UTC

[jira] [Comment Edited] (OFBIZ-8341) Fix Default or Empty Catch block in Java and Groovy files

    [ https://issues.apache.org/jira/browse/OFBIZ-8341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16068190#comment-16068190 ] 

Jacques Le Roux edited comment on OFBIZ-8341 at 9/5/17 5:18 AM:
----------------------------------------------------------------

We still have 88 swallowed exceptions in Java and Groovy files (search for *catch*{}*). I'll check and fix if necessary.


was (Author: jacques.le.roux):
We still have 88 swallowed exceptions in Java and Groovy files (search for catch*{}). I'll check and fix if necessary.

> Fix Default or Empty Catch block in Java and Groovy files
> ---------------------------------------------------------
>
>                 Key: OFBIZ-8341
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-8341
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>            Reporter: Harsh Vijaywargiya
>            Assignee: Jacques Le Roux
>             Fix For: Upcoming Release
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)