aboutsummaryrefslogtreecommitdiffstats
path: root/docs/adk15ProgGuideDB
diff options
context:
space:
mode:
authoracolyer <acolyer>2004-11-17 10:55:53 +0000
committeracolyer <acolyer>2004-11-17 10:55:53 +0000
commit5233d336169eea7471624fa7d7a2c4b705a7167c (patch)
tree2b11f38607f54efa8d722c655e96919b8b1bf49e /docs/adk15ProgGuideDB
parent5b313c381fdf2800b31a52b0e14819a2f5c74488 (diff)
downloadaspectj-5233d336169eea7471624fa7d7a2c4b705a7167c.tar.gz
aspectj-5233d336169eea7471624fa7d7a2c4b705a7167c.zip
use AccessibleObject rather than java.lang.reflect.Member
Diffstat (limited to 'docs/adk15ProgGuideDB')
-rw-r--r--docs/adk15ProgGuideDB/annotations.xml9
1 files changed, 2 insertions, 7 deletions
diff --git a/docs/adk15ProgGuideDB/annotations.xml b/docs/adk15ProgGuideDB/annotations.xml
index 285746a64..456094cdc 100644
--- a/docs/adk15ProgGuideDB/annotations.xml
+++ b/docs/adk15ProgGuideDB/annotations.xml
@@ -902,7 +902,7 @@
through the <literal>getSignature</literal> method of the <literal>JoinPoint</literal>
and <literal>JoinPoint.StaticPart</literal> interfaces. The <literal>MemberSignature</literal>
interface is extended with the additional operation
- <literal>java.lang.reflect.Member getMember()</literal>. The following fragment
+ <literal>java.lang.reflect.AccessibleObject getAccessibleObject()</literal>. The following fragment
illustrates an example use of this interface to access annotation information.
</para>
@@ -912,12 +912,7 @@
if (sig instanceof MemberSignature) {
// this must be an initialization, pre-initialization, call, execution, get, or
// set join point.
- Member member = ((MemberSignature)sig).getMember();
- // unfortunately, Member does not extend AnnotatedElement, so a further cast is
- // needed:
- if (member instanceof Field) { // a set or get join point...
- AnnotatedElement fieldAnnotationInfo = ((Field)member);
- }
+ AnnotatedElement memberAnnotationInfo = ((MemberSignature)sig).getAccessibleObject();
}
]]></programlisting>