Imho, 'Real McCoy' warning is important enough to be reported as warning
authorJaroslav Tulach <jtulach@netbeans.org>
Wed, 12 Nov 2008 13:37:38 +0100
changeset 4835ad6df2d5e61
parent 482 1d723652337a
child 484 265ec66c5134
child 890 758355b1b257
Imho, 'Real McCoy' warning is important enough to be reported as warning
openide.util/src/org/openide/util/lookup/MetaInfServicesLookup.java
     1.1 --- a/openide.util/src/org/openide/util/lookup/MetaInfServicesLookup.java	Tue Nov 04 14:00:31 2008 -0500
     1.2 +++ b/openide.util/src/org/openide/util/lookup/MetaInfServicesLookup.java	Wed Nov 12 13:37:38 2008 +0100
     1.3 @@ -180,14 +180,14 @@
     1.4                  if (realMcCoy != clazz) {
     1.5                      // Either the interface class is not available at all in our loader,
     1.6                      // or it is not the same version as we expected. Don't provide results.
     1.7 -                    if (LOGGER.isLoggable(Level.FINER)) {
     1.8 +                    if (LOGGER.isLoggable(Level.WARNING)) {
     1.9                          if (realMcCoy != null) {
    1.10 -                            LOGGER.log(Level.FINER,
    1.11 +                            LOGGER.log(Level.WARNING,
    1.12                                  clazz.getName() + " is not the real McCoy! Actually found it in " +
    1.13                                  realMcCoy.getClassLoader()
    1.14                              ); // NOI18N
    1.15                          } else {
    1.16 -                            LOGGER.log(Level.FINER, clazz.getName() + " could not be found in " + loader); // NOI18N
    1.17 +                            LOGGER.log(Level.WARNING, clazz.getName() + " could not be found in " + loader); // NOI18N
    1.18                          }
    1.19                      }
    1.20