details:   https://code.openbravo.com/erp/devel/pi/rev/6013dede1e39
changeset: 35514:6013dede1e39
user:      Javier Armendáriz <javier.armendariz <at> openbravo.com>
date:      Thu Mar 07 12:45:33 2019 +0100
summary:   Fixed issue 40335: Change validation type when Killable impl not 
found

To make this warning easier to filter, its validation type is changed
to KILLABLECLASSNOTFOUND instead of KILLABLENOTIMPLEMENTED.

diffstat:

 src/org/openbravo/service/system/DatabaseValidator.java      |  8 ++++----
 src/org/openbravo/service/system/SystemValidationResult.java |  5 +++--
 2 files changed, 7 insertions(+), 6 deletions(-)

diffs (42 lines):

diff -r 4eae47894e32 -r 6013dede1e39 
src/org/openbravo/service/system/DatabaseValidator.java
--- a/src/org/openbravo/service/system/DatabaseValidator.java   Tue Mar 05 
19:04:20 2019 +0530
+++ b/src/org/openbravo/service/system/DatabaseValidator.java   Thu Mar 07 
12:45:33 2019 +0100
@@ -898,12 +898,12 @@
         Class<?> processClass = Class.forName(process.getJavaClassName(), 
false,
             this.getClass().getClassLoader());
         if (!KillableProcess.class.isAssignableFrom(processClass)) {
-          
result.addWarning(SystemValidationResult.SystemValidationType.KILLABLENOTIMPLEMENTED,
-              "The process " + process.getIdentifier()
-                  + " is marked as killable so the javaclass associated must 
implement the KillableProcess interface");
+          result.addWarning(SystemValidationType.KILLABLENOTIMPLEMENTED, "The 
process "
+              + process.getIdentifier()
+              + " is marked as killable so the javaclass associated must 
implement the KillableProcess interface");
         }
       } catch (ClassNotFoundException e) {
-        
result.addWarning(SystemValidationResult.SystemValidationType.KILLABLENOTIMPLEMENTED,
+        result.addWarning(SystemValidationType.KILLABLECLASSNOTFOUND,
             "Error trying to obtain the class for process " + 
process.getIdentifier());
       }
 
diff -r 4eae47894e32 -r 6013dede1e39 
src/org/openbravo/service/system/SystemValidationResult.java
--- a/src/org/openbravo/service/system/SystemValidationResult.java      Tue Mar 
05 19:04:20 2019 +0530
+++ b/src/org/openbravo/service/system/SystemValidationResult.java      Thu Mar 
07 12:45:33 2019 +0100
@@ -11,7 +11,7 @@
  * under the License. 
  * The Original Code is Openbravo ERP. 
  * The Initial Developer of the Original Code is Openbravo SLU 
- * All portions are Copyright (C) 2009-2011 Openbravo SLU 
+ * All portions are Copyright (C) 2009-2019 Openbravo SLU
  * All Rights Reserved. 
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -59,7 +59,8 @@
     OLDSTYLE_PASSWORD_COLUMNS,
     DUPLICATED_INCLUSION,
     NOFIELDSINGRIDVIEW,
-    KILLABLENOTIMPLEMENTED;
+    KILLABLENOTIMPLEMENTED,
+    KILLABLECLASSNOTFOUND;
 
     public String getName() {
       return this.getClass().getSimpleName();


_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to