Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-dev] exceptions and around

I have the following constructor:
 
public Server() {
  Properties props = new Properties();
  props.load(new FileInputStream("properties"));
  
  new Thread(new HTTPServer(1980)).start(); System.out.println("server running...");
 }
 
and the following advice:
 
void around(): within(Server) && (call(void Properties.load(InputStream))){
   try {
    System.out.println("opening properties file ...");
    proceed();
   }catch(IOException x) {
    System.out.println("file does not exist.");
   }
  }
 
However I'm still getting a compiler error complaining that the IOException has not been handled. Any thoughts?
 
 
Eric Macaulay

Back to the top