Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] new no-arg constructor

Incorrect syntax?  (Yes, the message it gives you is hardly helpful in diagnosing it, sorry about that!)

public aspect A {
    public TestA.new() {  // *** error on this line
       this("wibble");
    }
}

2009/3/5 Michael McCray <mike@xxxxxxxxxxxxxxxxx>
Hi,

I want to add a no argument constructor to a class that does not have oen, this does not seem to be possible, does anyone know why not?

public aspect A {
    public TestA.TestA() {  // *** error on this line
    }
}
public class TestA {
    public TestA(String a) {
    }
}

Thanks,
Mike



_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users



Back to the top