]> source.dussan.org Git - aspectj.git/commitdiff
hacked out 1.4 apis - needs tidying up but I'm just trying to see if I can get the...
authoraclement <aclement>
Wed, 4 May 2005 11:03:23 +0000 (11:03 +0000)
committeraclement <aclement>
Wed, 4 May 2005 11:03:23 +0000 (11:03 +0000)
runtime/src/org/aspectj/lang/Aspects.java

index dd128636551012a4d89dccb1bcaaace824a6b663..f3e04e8b7f3348fc49729be023e8b1e1a88dd318 100644 (file)
@@ -44,7 +44,8 @@ public class Aspects {
         try {
             return getSingletonOrThreadAspectOf(aspectClass).invoke(null, EMPTY_OBJECT_ARRAY);
         } catch (InvocationTargetException e) {
-            throw new NoAspectBoundException(aspectClass.getName(), e.getCause());
+               //FIXME asc Highly temporary change to see what the build makes of it - dont use 1.4 APIs
+            throw new NoAspectBoundException(aspectClass.getName(), e);//e.getCause());
         } catch (Exception e) {
             throw new NoAspectBoundException(aspectClass.getName(), e);
         }
@@ -61,7 +62,8 @@ public class Aspects {
         try {
             return getPerObjectAspectOf(aspectClass).invoke(null, new Object[]{perObject});
         } catch (InvocationTargetException e) {
-            throw new NoAspectBoundException(aspectClass.getName(), e.getCause());
+               //FIXME asc Highly temporary change to see what the build makes of it - dont use 1.4 APIs
+            throw new NoAspectBoundException(aspectClass.getName(), e);//e.getCause());
         } catch (Exception e) {
             throw new NoAspectBoundException(aspectClass.getName(), e);
         }
@@ -78,7 +80,8 @@ public class Aspects {
         try {
             return getPerTypeWithinAspectOf(aspectClass).invoke(null, new Object[]{perTypeWithin});
         } catch (InvocationTargetException e) {
-            throw new NoAspectBoundException(aspectClass.getName(), e.getCause());
+//             FIXME asc Highly temporary change to see what the build makes of it - dont use 1.4 APIs
+            throw new NoAspectBoundException(aspectClass.getName(), e);//e.getCause());
         } catch (Exception e) {
             throw new NoAspectBoundException(aspectClass.getName(), e);
         }