1 diff -ru libbase-1.1.3.orig/source/org/pentaho/reporting/libraries/base/boot/AbstractBoot.java libbase-1.1.3/source/org/pentaho/reporting/libraries/base/boot/AbstractBoot.java
2 --- libbase-1.1.3.orig/source/org/pentaho/reporting/libraries/base/boot/AbstractBoot.java 2009-11-16 10:14:12.000000000 +0000
3 +++ libbase-1.1.3/source/org/pentaho/reporting/libraries/base/boot/AbstractBoot.java 2021-02-23 12:11:46.680967049 +0000
5 import java.util.ArrayList;
6 import java.util.Enumeration;
8 -import org.apache.commons.logging.Log;
9 -import org.apache.commons.logging.LogFactory;
10 +import java.util.logging.Logger;
11 import org.pentaho.reporting.libraries.base.config.Configuration;
12 import org.pentaho.reporting.libraries.base.config.ExtendedConfiguration;
13 import org.pentaho.reporting.libraries.base.config.ExtendedConfigurationWrapper;
16 * The logger for this class.
18 - private static final Log LOGGER = LogFactory.getLog(AbstractBoot.class);
19 + private static final Logger LOGGER = Logger.getLogger(AbstractBoot.class.getName());
22 * The configuration wrapper around the plain configuration.
27 - LOGGER.error(getClass() + " failed to boot: " + bootFailed.getMessage());
28 + LOGGER.severe(getClass() + " failed to boot: " + bootFailed.getMessage());
30 while (isBootInProgress())
36 - LOGGER.error(getClass() + " failed to boot: ", e);
37 + LOGGER.severe(getClass() + " failed to boot: " + e);
42 if (boot.isBootFailed())
44 this.bootFailed = boot.getBootFailureReason();
45 - LOGGER.error("Dependent project failed to boot up: " +
46 - projectInformation.getBootClass() + " failed to boot: ", this.bootFailed);
47 + LOGGER.severe("Dependent project failed to boot up: " +
48 + projectInformation.getBootClass() + " failed to boot: " + this.bootFailed);
54 catch (IOException ioe)
56 - LOGGER.warn("Failed to load the user configuration at " + url, ioe);
57 + LOGGER.warning("Failed to load the user configuration at " + url + " : " + ioe);
65 - LOGGER.warn("Failed to lookup the user configurations.", e);
66 + LOGGER.warning("Failed to lookup the user configurations: " + e);
75 \ No newline at end of file
77 diff -ru libbase-1.1.3.orig/source/org/pentaho/reporting/libraries/base/boot/PackageManager.java libbase-1.1.3/source/org/pentaho/reporting/libraries/base/boot/PackageManager.java
78 --- libbase-1.1.3.orig/source/org/pentaho/reporting/libraries/base/boot/PackageManager.java 2009-11-16 10:14:12.000000000 +0000
79 +++ libbase-1.1.3/source/org/pentaho/reporting/libraries/base/boot/PackageManager.java 2021-02-23 12:18:45.836952221 +0000
81 import java.util.HashMap;
82 import java.util.Iterator;
84 -import org.apache.commons.logging.Log;
85 -import org.apache.commons.logging.LogFactory;
86 +import java.util.logging.Level;
87 +import java.util.logging.Logger;
88 import org.pentaho.reporting.libraries.base.config.Configuration;
89 import org.pentaho.reporting.libraries.base.config.PropertyFileConfiguration;
90 import org.pentaho.reporting.libraries.base.util.ObjectUtilities;
95 - private static final Log LOGGER = LogFactory.getLog(PackageManager.class);
96 + private static final Logger LOGGER = Logger.getLogger(PackageManager.class.getName());
99 * An internal constant declaring that the specified module was already loaded.
104 - LOGGER.debug("Loaded a total of " + count + " modules under prefix: " + modulePrefix);
105 + LOGGER.config("Loaded a total of " + count + " modules under prefix: " + modulePrefix);
111 if (mod.configure(this.booter))
113 - if (LOGGER.isDebugEnabled())
114 + if (LOGGER.isLoggable(Level.CONFIG))
116 - LOGGER.debug("Conf: " +
117 + LOGGER.config("Conf: " +
118 new PadMessage(mod.getModule().getModuleClass(), 70) +
119 " [" + mod.getModule().getSubSystem() + ']');
123 if (mod.initialize(this.booter))
125 - if (LOGGER.isDebugEnabled())
126 + if (LOGGER.isLoggable(Level.CONFIG))
128 - LOGGER.debug("Init: " +
129 + LOGGER.config("Init: " +
130 new PadMessage(mod.getModule().getModuleClass(), 70) +
131 " [" + mod.getModule().getSubSystem() + ']');
133 @@ -271,12 +271,12 @@
134 final PackageState dependentState = (PackageState) modulesByClass.get(key);
135 if (dependentState == null)
137 - LOGGER.warn("Required dependency '" + key + "' for module '" + state.getModule().getModuleClass() + " not found.");
138 + LOGGER.warning("Required dependency '" + key + "' for module '" + state.getModule().getModuleClass() + " not found.");
141 if (dependentState.getState() != PackageState.STATE_CONFIGURED)
143 - LOGGER.warn("Required dependency '" + key + "' for module '" + state.getModule().getModuleClass() + " not configured.");
144 + LOGGER.warning("Required dependency '" + key + "' for module '" + state.getModule().getModuleClass() + " not configured.");
148 @@ -300,12 +300,12 @@
149 final PackageState dependentState = (PackageState) modulesByClass.get(key);
150 if (dependentState == null)
152 - LOGGER.warn("Required dependency '" + key + "' for module '" + state.getModule().getModuleClass() + " not found.");
153 + LOGGER.warning("Required dependency '" + key + "' for module '" + state.getModule().getModuleClass() + " not found.");
156 if (dependentState.getState() != PackageState.STATE_INITIALIZED)
158 - LOGGER.warn("Required dependency '" + key + "' for module '" + state.getModule().getModuleClass() + " not initializable.");
159 + LOGGER.warning("Required dependency '" + key + "' for module '" + state.getModule().getModuleClass() + " not initializable.");
163 @@ -418,15 +418,15 @@
167 - LOGGER.warn("Unresolved dependency for package: " + moduleInfo.getModuleClass());
168 + LOGGER.warning("Unresolved dependency for package: " + moduleInfo.getModuleClass());
170 - LOGGER.debug("Module class referenced, but not in classpath: " + moduleInfo.getModuleClass());
171 + LOGGER.config("Module class referenced, but not in classpath: " + moduleInfo.getModuleClass());
174 if (acceptVersion(moduleInfo, module) == false)
177 - LOGGER.warn("Module " + module.getName() + ": required version: "
178 + LOGGER.warning("Module " + module.getName() + ": required version: "
179 + moduleInfo + ", but found Version: \n" + module);
180 final PackageState state = new PackageState(module, PackageState.STATE_ERROR);
181 dropFailedModule(state);
183 if (moduleContained == RETURN_MODULE_ERROR)
185 // the module caused harm before ...
186 - LOGGER.debug("Indicated failure for module: " + module.getModuleClass());
187 + LOGGER.config("Indicated failure for module: " + module.getModuleClass());
188 final PackageState state = new PackageState(module, PackageState.STATE_ERROR);
189 dropFailedModule(state);
192 if (incompleteModules.contains(module))
194 // we assume that loading will continue ...
197 ("Circular module reference: This module definition is invalid: " +
199 final PackageState state = new PackageState(module, PackageState.STATE_ERROR);
202 if (loadModule(required[i], incompleteModules, modules, true) == false)
204 - LOGGER.debug("Indicated failure for module: " + module.getModuleClass());
205 + LOGGER.config("Indicated failure for module: " + module.getModuleClass());
206 final PackageState state = new PackageState(module, PackageState.STATE_ERROR);
207 dropFailedModule(state);
211 if (loadModule(optional[i], incompleteModules, modules, true) == false)
213 - LOGGER.debug("Optional module: " + optional[i].getModuleClass() + " was not loaded.");
214 + LOGGER.config("Optional module: " + optional[i].getModuleClass() + " was not loaded.");
217 // maybe a dependent module defined the same base module ...
222 - LOGGER.warn("Exception while loading module: " + moduleInfo, e);
223 + LOGGER.warning("Exception while loading module: " + moduleInfo + " : " + e);
229 if (module.getMajorVersion() == null)
231 - LOGGER.warn("Module " + module.getName() + " does not define a major version.");
232 + LOGGER.warning("Module " + module.getName() + " does not define a major version.");
238 if (module.getMinorVersion() == null)
240 - LOGGER.warn("Module " + module.getName() + " does not define a minor version.");
241 + LOGGER.warning("Module " + module.getName() + " does not define a minor version.");
245 @@ -550,14 +550,14 @@
247 if (module.getPatchLevel() == null)
249 - LOGGER.debug("Module " + module.getName() + " does not define a patch level.");
250 + LOGGER.config("Module " + module.getName() + " does not define a patch level.");
254 if (acceptVersion(moduleRequirement.getPatchLevel(),
255 module.getPatchLevel()) > 0)
257 - LOGGER.debug("Did not accept patchlevel: "
258 + LOGGER.config("Did not accept patchlevel: "
259 + moduleRequirement.getPatchLevel() + " - "
260 + module.getPatchLevel());
263 p.println(mod.getDescription());
267 \ No newline at end of file
269 diff -ru libbase-1.1.3.orig/source/org/pentaho/reporting/libraries/base/boot/PackageSorter.java libbase-1.1.3/source/org/pentaho/reporting/libraries/base/boot/PackageSorter.java
270 --- libbase-1.1.3.orig/source/org/pentaho/reporting/libraries/base/boot/PackageSorter.java 2009-11-16 10:14:12.000000000 +0000
271 +++ libbase-1.1.3/source/org/pentaho/reporting/libraries/base/boot/PackageSorter.java 2021-02-23 12:19:11.752198616 +0000
273 import java.util.Iterator;
274 import java.util.List;
276 -import org.apache.commons.logging.Log;
277 -import org.apache.commons.logging.LogFactory;
278 +import java.util.logging.Logger;
279 import org.pentaho.reporting.libraries.base.util.ObjectUtilities;
285 /** A logger for debug-messages. */
286 - private static final Log LOGGER = LogFactory.getLog(PackageSorter.class);
287 + private static final Logger LOGGER = Logger.getLogger(PackageSorter.class.getName());
290 * DefaultConstructor.
292 final SortModule reqMod = (SortModule) moduleMap.get(moduleName);
295 - LOGGER.warn("Invalid state: Required dependency of '" + moduleName + "' had an error.");
296 + LOGGER.warning("Invalid state: Required dependency of '" + moduleName + "' had an error.");
299 if (reqMod.getPosition() >= position)
301 moduleMap.get(requiredModules[i].getModuleClass());
302 if (dependentModule == null)
306 ("A dependent module was not found in the list of known modules." +
307 requiredModules[i].getModuleClass());
309 @@ -431,11 +430,11 @@
310 moduleMap.get(optionalModules[i].getModuleClass());
311 if (dependentModule == null)
313 - LOGGER.warn("A dependent module was not found in the list of known modules.");
314 + LOGGER.warning("A dependent module was not found in the list of known modules.");
317 collector.add(dependentModule.getSubSystem());
322 \ No newline at end of file
324 diff -ru libbase-1.1.3.orig/source/org/pentaho/reporting/libraries/base/boot/PackageState.java libbase-1.1.3/source/org/pentaho/reporting/libraries/base/boot/PackageState.java
325 --- libbase-1.1.3.orig/source/org/pentaho/reporting/libraries/base/boot/PackageState.java 2009-11-16 10:14:12.000000000 +0000
326 +++ libbase-1.1.3/source/org/pentaho/reporting/libraries/base/boot/PackageState.java 2021-02-23 12:22:15.204942814 +0000
329 package org.pentaho.reporting.libraries.base.boot;
331 -import org.apache.commons.logging.Log;
332 -import org.apache.commons.logging.LogFactory;
333 +import java.util.logging.Level;
334 +import java.util.logging.Logger;
337 * The package state class is used by the package manager to keep track of
339 public class PackageState
342 - private static final Log LOGGER = LogFactory.getLog(PackageState.class);
343 + private static final Logger LOGGER = Logger.getLogger(PackageState.class.getName());
346 * A constant defining that the package is new.
347 @@ -119,20 +119,20 @@
349 catch (NoClassDefFoundError noClassDef)
351 - LOGGER.warn("Unable to load module classes for " +
352 + LOGGER.warning("Unable to load module classes for " +
353 this.module.getName() + ':' + noClassDef.getMessage());
354 this.state = STATE_ERROR;
358 - if (LOGGER.isDebugEnabled())
359 + if (LOGGER.isLoggable(Level.CONFIG))
361 // its still worth a warning, but now we are more verbose ...
362 - LOGGER.warn("Unable to configure the module " + this.module.getName(), e);
363 + LOGGER.warning("Unable to configure the module " + this.module.getName() + " : " + e);
365 - else if (LOGGER.isWarnEnabled())
366 + else if (LOGGER.isLoggable(Level.WARNING))
368 - LOGGER.warn("Unable to configure the module " + this.module.getName());
369 + LOGGER.warning("Unable to configure the module " + this.module.getName());
371 this.state = STATE_ERROR;
373 @@ -187,32 +187,32 @@
375 catch (NoClassDefFoundError noClassDef)
377 - LOGGER.warn("Unable to load module classes for " + this.module.getName() + ':' + noClassDef.getMessage());
378 + LOGGER.warning("Unable to load module classes for " + this.module.getName() + ':' + noClassDef.getMessage());
379 this.state = STATE_ERROR;
381 catch (ModuleInitializeException me)
383 - if (LOGGER.isDebugEnabled())
384 + if (LOGGER.isLoggable(Level.CONFIG))
386 // its still worth a warning, but now we are more verbose ...
387 - LOGGER.warn("Unable to initialize the module " + this.module.getName(), me);
388 + LOGGER.warning("Unable to initialize the module " + this.module.getName() + " : " + me);
390 - else if (LOGGER.isWarnEnabled())
391 + else if (LOGGER.isLoggable(Level.WARNING))
393 - LOGGER.warn("Unable to initialize the module " + this.module.getName());
394 + LOGGER.warning("Unable to initialize the module " + this.module.getName());
396 this.state = STATE_ERROR;
400 - if (LOGGER.isDebugEnabled())
401 + if (LOGGER.isLoggable(Level.CONFIG))
403 // its still worth a warning, but now we are more verbose ...
404 - LOGGER.warn("Unable to initialize the module " + this.module.getName(), e);
405 + LOGGER.warning("Unable to initialize the module " + this.module.getName() + " : " + e);
407 - else if (LOGGER.isWarnEnabled())
408 + else if (LOGGER.isLoggable(Level.WARNING))
410 - LOGGER.warn("Unable to initialize the module " + this.module.getName());
411 + LOGGER.warning("Unable to initialize the module " + this.module.getName());
413 this.state = STATE_ERROR;
417 this.state = STATE_ERROR;
420 \ No newline at end of file
422 diff -ru libbase-1.1.3.orig/source/org/pentaho/reporting/libraries/base/config/PropertyFileConfiguration.java libbase-1.1.3/source/org/pentaho/reporting/libraries/base/config/PropertyFileConfiguration.java
423 --- libbase-1.1.3.orig/source/org/pentaho/reporting/libraries/base/config/PropertyFileConfiguration.java 2009-11-16 10:14:12.000000000 +0000
424 +++ libbase-1.1.3/source/org/pentaho/reporting/libraries/base/config/PropertyFileConfiguration.java 2021-02-23 12:13:55.788194558 +0000
426 import java.io.InputStream;
427 import java.util.Properties;
429 -import org.apache.commons.logging.Log;
430 -import org.apache.commons.logging.LogFactory;
431 +import java.util.logging.Logger;
432 import org.pentaho.reporting.libraries.base.util.ObjectUtilities;
436 public class PropertyFileConfiguration extends HierarchicalConfiguration
438 /** A logger for debug-messages. */
439 - private static final Log LOGGER = LogFactory.getLog(PropertyFileConfiguration.class);
440 + private static final Logger LOGGER = Logger.getLogger(PropertyFileConfiguration.class.getName());
441 /** A serialization related constant. */
442 private static final long serialVersionUID = 2423181637547944866L;
448 - LOGGER.debug("Configuration file not found in the classpath: " + resourceName);
449 + LOGGER.config("Configuration file not found in the classpath: " + resourceName);
455 catch (IOException ioe)
457 - LOGGER.warn("Unable to read configuration", ioe);
458 + LOGGER.warning("Unable to read configuration:" + ioe);
464 \ No newline at end of file
466 diff -ru libbase-1.1.3.orig/source/org/pentaho/reporting/libraries/base/util/ClassQueryTool.java libbase-1.1.3/source/org/pentaho/reporting/libraries/base/util/ClassQueryTool.java
467 --- libbase-1.1.3.orig/source/org/pentaho/reporting/libraries/base/util/ClassQueryTool.java 2009-11-16 10:14:12.000000000 +0000
468 +++ libbase-1.1.3/source/org/pentaho/reporting/libraries/base/util/ClassQueryTool.java 2021-02-23 12:24:05.460991092 +0000
470 import java.util.zip.ZipEntry;
471 import java.util.zip.ZipInputStream;
473 -import org.apache.commons.logging.Log;
474 -import org.apache.commons.logging.LogFactory;
475 +import java.util.logging.Logger;
478 * The class-query tool loads classes using a classloader and calls "processClass" for each class encountered. This is
480 public abstract class ClassQueryTool
483 - private static final Log logger = LogFactory.getLog(ClassQueryTool.class);
484 + private static final Logger logger = Logger.getLogger(ClassQueryTool.class.getName());
487 * The default constructor.
492 - logger.debug("At class '" + className + "': " + e);
493 + logger.config("At class '" + className + "': " + e);
499 catch (final IOException e1)
501 - logger.debug("Caught IO-Exception while processing file " + jarFile, e1);
502 + logger.config("Caught IO-Exception while processing file " + jarFile + " : " + e1);
507 for (int i = 0; i < allArray.length; i++)
509 final URL url = allArray[i];
511 + logger.config(url.toString());
513 for (int i = 0; i < urlsArray.length; i++)
515 diff -ru libbase-1.1.3.orig/source/org/pentaho/reporting/libraries/base/util/DebugLog.java libbase-1.1.3/source/org/pentaho/reporting/libraries/base/util/DebugLog.java
516 --- libbase-1.1.3.orig/source/org/pentaho/reporting/libraries/base/util/DebugLog.java 2009-11-16 10:14:12.000000000 +0000
517 +++ libbase-1.1.3/source/org/pentaho/reporting/libraries/base/util/DebugLog.java 2021-02-23 12:26:00.488084723 +0000
520 package org.pentaho.reporting.libraries.base.util;
522 -import org.apache.commons.logging.Log;
523 -import org.apache.commons.logging.LogFactory;
524 +import java.util.logging.Logger;
527 * This class provides static log messages for on-going bug-hunting efforts. This removes the need to create
529 public final class DebugLog
532 - private static final Log logger = LogFactory.getLog(DebugLog.class);
533 + private static final Logger logger = Logger.getLogger(DebugLog.class.getName());
536 * Logs a message using the debug-logger. By channeling all temporary log messages through this method,
539 public static void log(final Object message)
541 - logger.info(message);
542 + logger.info(message.toString());
548 public static void log(final Object message, final Throwable t)
550 - logger.info(message, t);
551 + logger.info(message + " : " + t);
556 public static void logHereWE()
558 //noinspection ThrowableInstanceNeverThrown
559 - logger.info("HERE: Debug point reached", new Exception("Debug-Point reached"));
560 + logger.info("HERE: Debug point reached");
564 diff -ru libbase-1.1.3.orig/source/org/pentaho/reporting/libraries/base/util/ObjectUtilities.java libbase-1.1.3/source/org/pentaho/reporting/libraries/base/util/ObjectUtilities.java
565 --- libbase-1.1.3.orig/source/org/pentaho/reporting/libraries/base/util/ObjectUtilities.java 2009-11-16 10:14:12.000000000 +0000
566 +++ libbase-1.1.3/source/org/pentaho/reporting/libraries/base/util/ObjectUtilities.java 2021-02-23 12:30:11.253468898 +0000
568 import java.util.Arrays;
569 import java.util.StringTokenizer;
571 -import org.apache.commons.logging.Log;
572 -import org.apache.commons.logging.LogFactory;
573 +import java.util.logging.Level;
574 +import java.util.logging.Logger;
577 * A collection of useful static utility methods for handling classes and object instantiation.
580 public final class ObjectUtilities
582 - private static final Log LOGGER = LogFactory.getLog(ObjectUtilities.class);
583 + private static final Logger LOGGER = Logger.getLogger(ObjectUtilities.class.getName());
586 * A constant for using the TheadContext as source for the classloader.
587 @@ -180,15 +180,15 @@
589 catch (NoSuchMethodException e)
591 - LOGGER.warn("Object without clone() method is impossible on class " + aClass, e);
592 + LOGGER.warning("Object without clone() method is impossible on class " + aClass + " : " + e);
594 catch (IllegalAccessException e)
596 - LOGGER.warn("Object.clone(): unable to call method 'clone()' on class " + aClass, e);
597 + LOGGER.warning("Object.clone(): unable to call method 'clone()' on class " + aClass + " : " + e);
599 catch (InvocationTargetException e)
601 - LOGGER.warn("Object without clone() method is impossible on class " + aClass, e);
602 + LOGGER.warning("Object without clone() method is impossible on class " + aClass + " : " + e);
604 throw new CloneNotSupportedException
605 ("Failed to clone: Clone caused an Exception while cloning type " + aClass);
606 @@ -424,32 +424,32 @@
607 if (type != null && type.isAssignableFrom(c) == false)
609 // this is unacceptable and means someone messed up the configuration
610 - LOGGER.warn("Specified class " + className + " is not of expected type " + type);
611 + LOGGER.warning("Specified class " + className + " is not of expected type " + type);
614 return c.newInstance();
616 catch (ClassNotFoundException e)
618 - if (LOGGER.isDebugEnabled())
619 + if (LOGGER.isLoggable(Level.CONFIG))
621 - LOGGER.debug("Specified class " + className + " does not exist.");
622 + LOGGER.config("Specified class " + className + " does not exist.");
624 // sometimes, this one is expected.
626 catch (NoClassDefFoundError e)
628 - if (LOGGER.isDebugEnabled())
629 + if (LOGGER.isLoggable(Level.CONFIG))
631 - LOGGER.debug("Specified class " + className + " cannot be loaded [NOCLASSDEFERROR].");
632 + LOGGER.config("Specified class " + className + " cannot be loaded [NOCLASSDEFERROR].");
637 // this is more severe than a class not being found at all
638 - if (LOGGER.isDebugEnabled())
639 + if (LOGGER.isLoggable(Level.CONFIG))
641 - LOGGER.info("Specified class " + className + " failed to instantiate correctly.", e);
642 + LOGGER.info("Specified class " + className + " failed to instantiate correctly." + " : " + e);
651 \ No newline at end of file
653 diff -ru libbase-1.1.3.orig/source/org/pentaho/reporting/libraries/base/util/PngEncoder.java libbase-1.1.3/source/org/pentaho/reporting/libraries/base/util/PngEncoder.java
654 --- libbase-1.1.3.orig/source/org/pentaho/reporting/libraries/base/util/PngEncoder.java 2009-11-16 10:14:12.000000000 +0000
655 +++ libbase-1.1.3/source/org/pentaho/reporting/libraries/base/util/PngEncoder.java 2021-02-23 12:27:15.484797751 +0000
657 import java.util.zip.Deflater;
658 import java.util.zip.DeflaterOutputStream;
660 -import org.apache.commons.logging.Log;
661 -import org.apache.commons.logging.LogFactory;
662 +import java.util.logging.Logger;
663 import org.pentaho.reporting.libraries.base.encoder.ImageEncoder;
664 import org.pentaho.reporting.libraries.base.encoder.UnsupportedEncoderException;
667 public class PngEncoder implements ImageEncoder
669 /** A logger for debug-messages. */
670 - private static final Log logger = LogFactory.getLog(PngEncoder.class);
671 + private static final Logger logger = Logger.getLogger(PngEncoder.class.getName());
674 * Constant specifying that alpha channel should be encoded.
675 @@ -622,12 +621,12 @@
679 - logger.error("interrupted waiting for pixels!", e);
680 + logger.severe("interrupted waiting for pixels: " + e);
683 if ((pg.getStatus() & ImageObserver.ABORT) != 0)
685 - logger.error("image fetch aborted or errored");
686 + logger.severe("image fetch aborted or errored");
692 catch (IOException e)
694 - logger.error("Failed to write PNG Data", e);
695 + logger.severe("Failed to write PNG Data:" + e);
699 diff -ru libbase-1.1.3.orig/source/org/pentaho/reporting/libraries/base/util/ResourceBundleSupport.java libbase-1.1.3/source/org/pentaho/reporting/libraries/base/util/ResourceBundleSupport.java
700 --- libbase-1.1.3.orig/source/org/pentaho/reporting/libraries/base/util/ResourceBundleSupport.java 2009-11-16 10:14:12.000000000 +0000
701 +++ libbase-1.1.3/source/org/pentaho/reporting/libraries/base/util/ResourceBundleSupport.java 2021-02-23 12:27:45.015078518 +0000
703 import javax.swing.JMenu;
704 import javax.swing.KeyStroke;
706 -import org.apache.commons.logging.Log;
707 -import org.apache.commons.logging.LogFactory;
708 +import java.util.logging.Logger;
711 * An utility class to ease up using property-file resource bundles.
714 * A logger for debug-messages.
716 - private static final Log logger = LogFactory.getLog(ResourceBundleSupport.class);
717 + private static final Logger logger = Logger.getLogger(ResourceBundleSupport.class.getName());
720 * The resource bundle that will be used for local lookups.
725 - logger.error("Error during global lookup", e);
726 + logger.severe("Error during global lookup: " + e);
727 throw new MissingResourceException("Error during global lookup", getResourceBase(), key);
731 final URL in = ObjectUtilities.getResource(name, ResourceBundleSupport.class);
734 - logger.warn("Unable to find file in the class path: " + name + "; key=" + key);
735 + logger.warning("Unable to find file in the class path: " + name + "; key=" + key);
739 @@ -668,13 +667,13 @@
743 - logger.warn("Unable to find file in the class path: " + resourceName);
744 + logger.warning("Unable to find file in the class path: " + resourceName);
745 return new ImageIcon(createTransparentImage(1, 1));
747 final Image img = Toolkit.getDefaultToolkit().createImage(in);
750 - logger.warn("Unable to instantiate the image: " + resourceName);
751 + logger.warning("Unable to instantiate the image: " + resourceName);
752 return new ImageIcon(createTransparentImage(1, 1));
757 catch (MissingResourceException mre)
759 - logger.warn ("ResourceBundleSupport#getString(,,)", mre);
760 + logger.warning ("ResourceBundleSupport#getString(,,): " + mre);
761 return '!' + key + '!';
766 catch (MissingResourceException mre)
768 - logger.warn ("ResourceBundleSupport#getString(,,)", mre);
769 + logger.warning ("ResourceBundleSupport#getString(,,): " + mre);
770 return '!' + key + '!';
775 catch (MissingResourceException mre)
777 - logger.warn ("ResourceBundleSupport#getString(,,)", mre);
778 + logger.warning ("ResourceBundleSupport#getString(,,): " + mre);
779 return '!' + key + '!';
784 catch (MissingResourceException mre)
786 - logger.warn ("ResourceBundleSupport#getString(,,)", mre);
787 + logger.warning ("ResourceBundleSupport#getString(,,): " + mre);
788 return '!' + key + '!';
791 diff -ru libbase-1.1.3.orig/source/org/pentaho/reporting/libraries/base/util/WaitingImageObserver.java libbase-1.1.3/source/org/pentaho/reporting/libraries/base/util/WaitingImageObserver.java
792 --- libbase-1.1.3.orig/source/org/pentaho/reporting/libraries/base/util/WaitingImageObserver.java 2009-11-16 10:14:12.000000000 +0000
793 +++ libbase-1.1.3/source/org/pentaho/reporting/libraries/base/util/WaitingImageObserver.java 2021-02-23 12:30:28.223630238 +0000
795 import java.awt.image.BufferedImage;
796 import java.awt.image.ImageObserver;
798 -import org.apache.commons.logging.Log;
799 -import org.apache.commons.logging.LogFactory;
800 +import java.util.logging.Logger;
803 * This image observer blocks until the image is completely loaded. AWT defers the loading of images until they are
805 public class WaitingImageObserver implements ImageObserver
808 - private static final Log LOGGER = LogFactory.getLog(WaitingImageObserver.class);
809 + private static final Logger LOGGER = Logger.getLogger(WaitingImageObserver.class.getName());
815 catch (InterruptedException e)
817 - LOGGER.info("WaitingImageObserver.waitImageLoaded(): InterruptedException thrown", e);
818 + LOGGER.info("WaitingImageObserver.waitImageLoaded(): InterruptedException thrown: " + e);
821 if (maxLoadTime > 0 && lastUpdate < (System.currentTimeMillis() - maxLoadTime))
827 \ No newline at end of file
829 --- a/source/org/pentaho/reporting/libraries/base/util/IOUtils.java
830 +++ b/source/org/pentaho/reporting/libraries/base/util/IOUtils.java
832 import java.sql.Clob;
833 import java.sql.SQLException;
835 -import org.apache.commons.logging.LogFactory;
836 -import org.apache.commons.logging.Log;
837 +import java.util.logging.Logger;
840 * The IOUtils provide some IO related helper methods.
842 * the singleton instance of the utility package.
844 private static IOUtils instance;
845 - private static final Log logger = LogFactory.getLog(IOUtils.class);
846 + private static final Logger logger = Logger.getLogger(IOUtils.class.getName());
848 * DefaultConstructor.
851 final long length = clob.length();
852 if (length > Integer.MAX_VALUE)
854 - logger.warn ("This CLOB contains more than 2^31 characters. We cannot handle that.");
855 + logger.warning ("This CLOB contains more than 2^31 characters. We cannot handle that.");
861 catch (IOException e)
863 - logger.warn ("Copying the stream failed.", e);
864 + logger.warning ("Copying the stream failed: " + e);
870 catch (IOException e)
872 - logger.warn ("Failed to close input stream. No worries, we will be alright anyway.", e);
873 + logger.warning ("Failed to close input stream. No worries, we will be alright anyway: " + e);
875 return outStream.toString();
878 final long length = clob.length();
879 if (length > Integer.MAX_VALUE)
881 - logger.warn ("This CLOB contains more than 2^31 characters. We cannot handle that.");
882 + logger.warning ("This CLOB contains more than 2^31 characters. We cannot handle that.");
888 catch (IOException e)
890 - logger.warn ("Copying the stream failed.", e);
891 + logger.warning ("Copying the stream failed: " + e);
897 catch (IOException e)
899 - logger.warn ("Failed to close input stream. No worries, we will be alright anyway.", e);
900 + logger.warning ("Failed to close input stream. No worries, we will be alright anyway: " + e);
902 return outStream.toByteArray();