diff options
author | aclement <aclement> | 2005-06-07 12:17:30 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-06-07 12:17:30 +0000 |
commit | 3824b1c24717b79d48bd5f965bd2d34569dc2195 (patch) | |
tree | 8ff1f27023a8fa71d38e8989300e827177a45cc2 /runtime | |
parent | 28dfbdae5135a0324471c846f0ca1690245cb671 (diff) | |
download | aspectj-3824b1c24717b79d48bd5f965bd2d34569dc2195.tar.gz aspectj-3824b1c24717b79d48bd5f965bd2d34569dc2195.zip |
Fix and tests for PR94167: NPE in reflection API. Fix submitted by Ron Bodkin.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/src/org/aspectj/runtime/reflect/AdviceSignatureImpl.java | 2 | ||||
-rw-r--r-- | runtime/src/org/aspectj/runtime/reflect/MethodSignatureImpl.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/runtime/src/org/aspectj/runtime/reflect/AdviceSignatureImpl.java b/runtime/src/org/aspectj/runtime/reflect/AdviceSignatureImpl.java index e814a5add..6bf899a22 100644 --- a/runtime/src/org/aspectj/runtime/reflect/AdviceSignatureImpl.java +++ b/runtime/src/org/aspectj/runtime/reflect/AdviceSignatureImpl.java @@ -62,7 +62,7 @@ class AdviceSignatureImpl extends CodeSignatureImpl implements AdviceSignature { public Method getAdvice() { if (adviceMethod == null) { try { - adviceMethod = declaringType.getDeclaredMethod(getName(),getParameterTypes()); + adviceMethod = getDeclaringType().getDeclaredMethod(getName(),getParameterTypes()); } catch (Exception ex) { ; // nothing we can do, caller will see null } diff --git a/runtime/src/org/aspectj/runtime/reflect/MethodSignatureImpl.java b/runtime/src/org/aspectj/runtime/reflect/MethodSignatureImpl.java index 3331df08d..612d0ca0e 100644 --- a/runtime/src/org/aspectj/runtime/reflect/MethodSignatureImpl.java +++ b/runtime/src/org/aspectj/runtime/reflect/MethodSignatureImpl.java @@ -60,7 +60,7 @@ class MethodSignatureImpl extends CodeSignatureImpl implements MethodSignature { public Method getMethod() { if (method == null) { try { - method = declaringType.getDeclaredMethod(getName(),getParameterTypes()); + method = getDeclaringType().getDeclaredMethod(getName(),getParameterTypes()); } catch (NoSuchMethodException nsmEx) { ; // nothing we can do, user will see null return } |