Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-dev] pointcut problem

I have the following constructor:
 
public Server() {
   try {
    socket = new ServerSocket(2004);
   }catch(IOException x) {
    System.out.println("Unable to create server socket.");
    System.exit(-1);
   }
  }
 
When the ServerSocket constructor returns I want to to print out a message so I used this code:
 
after() returning(): within(Server) && execution(ServerSocket.new(int)) {
    System.out.println("listening...");
}
 
Howeve when I run the program no message is displayed. Can anyone help?
 
Eric Macaulay

Back to the top