geronimo-xbean-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r1144173 - /geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/AbstractFinder.java
Date Fri, 08 Jul 2011 06:41:13 GMT
Author: djencks
Date: Fri Jul  8 06:41:12 2011
New Revision: 1144173

URL: http://svn.apache.org/viewvc?rev=1144173&view=rev
Log:
don't print stack traces to err.  If we can't load a class, put it in the list of such classes

Modified:
    geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/AbstractFinder.java

Modified: geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/AbstractFinder.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/AbstractFinder.java?rev=1144173&r1=1144172&r2=1144173&view=diff
==============================================================================
--- geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/AbstractFinder.java
(original)
+++ geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/AbstractFinder.java
Fri Jul  8 06:41:12 2011
@@ -568,10 +568,10 @@ public abstract class AbstractFinder imp
                     in.close();
                 }
             } else {
-                new Exception("Could not load " + className).printStackTrace();
+                classesNotLoaded.add(className + " (no resource found for class)");
             }
         } catch (IOException e) {
-            e.printStackTrace();
+            classesNotLoaded.add(className + e.getMessage());
         }
 
     }



Mime
View raw message