Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » How to use the MethodSignature.getReturnType()
How to use the MethodSignature.getReturnType() [message #590813] Thu, 10 November 2005 22:46
Rakesh is currently offline RakeshFriend
Messages: 6
Registered: July 2009
Junior Member
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
Previous Topic:AJDT New Feature of the Week: Load-time Weaving
Next Topic:How to use the MethodSignature.getReturnType()
Goto Forum:
  


Current Time: Sat Dec 20 05:18:33 GMT 2014

Powered by FUDForum. Page generated in 0.01671 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software