Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] oops! complete email on initialising instance variables

Hi All,

I am having problems initialising inherited instance
variables.  Since the aspects do not have
constructors, how do we intialise inherited instance
variables? i.e:

public abstract aspect A
{
  protected int foo;
}

public aspect B extends A
{
  foo = 5;
}

Compiler complains: Syntax error on token "=",
"around", "aspect", "privileged", "pointcut",
"before", "after", "declare", "Identifier" expected

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


Back to the top