]> source.dussan.org Git - aspectj.git/commitdiff
Generalized exception that might occur
authorAndy Clement <aclement@pivotal.io>
Wed, 29 Aug 2018 20:08:15 +0000 (13:08 -0700)
committerAndy Clement <aclement@pivotal.io>
Wed, 29 Aug 2018 20:08:15 +0000 (13:08 -0700)
weaver/src/org/aspectj/weaver/ltw/LTWWorld.java

index a053acefd0f859f1697f10df4960c81d8982b5f0..de5a4d854a89496922b81ee05adede0e6b197fa6 100644 (file)
@@ -75,7 +75,7 @@ public class LTWWorld extends BcelWorld implements IReflectionWorld {
                this.weavingContext = weavingContext;
                try {
                        classLoaderString = loader.toString();
-               } catch (NullPointerException npe) {
+               } catch (Throwable t) {
                        // Possibly some state in the loader isn't initialized but is used in the toString()
                        classLoaderString = loader.getClass().getName()+":"+Integer.toString(System.identityHashCode(loader));
                }