Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » Generics - Exception
Generics - Exception [message #599603] Wed, 28 January 2009 09:49
Hitalo is currently offline Hitalo
Messages: 4
Registered: July 2009
Junior Member
Good morning!

I wonder if this is possible?
And if you have any way of doing?
Use "Generics" for exception and the "catch" exception get past ...

public abstract privileged aspect AbstractAspect<C extends Exception> {

abstract pointcut point();

declare soft: C : point();

void around() : point() {
try {
return proceed();
} catch (C e) {
System.out.println(e.getMessage());
}
}

}
Previous Topic:Runtime configuration i n Aspectj
Next Topic:Generics - Exception
Goto Forum:
  


Current Time: Thu Jul 31 03:26:22 EDT 2014

Powered by FUDForum. Page generated in 0.02051 seconds