From 529dacebd3f9fd9eac2ca7caecf3cbadc103e495 Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 4 May 2005 11:03:23 +0000 Subject: [PATCH] hacked out 1.4 apis - needs tidying up but I'm just trying to see if I can get the build to work. --- runtime/src/org/aspectj/lang/Aspects.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/runtime/src/org/aspectj/lang/Aspects.java b/runtime/src/org/aspectj/lang/Aspects.java index dd1286365..f3e04e8b7 100644 --- a/runtime/src/org/aspectj/lang/Aspects.java +++ b/runtime/src/org/aspectj/lang/Aspects.java @@ -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); } -- 2.39.5