How to use the MethodSignature.getReturnType() [message #58267] |
Thu, 10 November 2005 22:46 |
Eclipse User |
|
|
|
Originally posted by: aim.yahoo.com
Hi --
I am novice to Eclipse AJDT. I am trying to get the retrun type of a
signature in an advice.
I am using the following code to get that :
AdviceSignature adviceSig =
((AdviceSignature)thisJoinPoint.getSignature());
But when I execute my AspectJ project it's throwing a classcastexception
as follows:
java.lang.ClassCastException
at
com.sequence.Sequence.ajc$before$com_sequence_Sequence$1$b31 4f86e(Sequence.aj:34)
at com.sequence.Figure.main(Figure.java)
Exception in thread "main"
I also tried to use MethodSignature class to get the return type of the
signature but same result (Exception)
Thanks in Advance
Aim
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03211 seconds