Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Introducing constructor with parameters

Hi,
 
I'm trying to write an aspect to introduce a constructor in a particular class. The problem is that if the class already has the constructor the compilation fails. Is there a way to fix it?
 
public mypackage.MyClass.new(String name) {
  super(name);
  System.out.print(" Aditional constructor. ");
}
 
Thanks,
 
André
 

Back to the top